Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rails_param
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ikcrm_common
rails_param
Commits
5187e6a6
Commit
5187e6a6
authored
Oct 28, 2014
by
cole bradley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change tabs back to 2 spaces to resemble original style
parent
e17d84f4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
2 deletions
+2
-2
lib/rails_param/param.rb
+0
-0
spec/fixtures/controllers.rb
+0
-0
spec/rails_integration_spec.rb
+2
-2
spec/rails_param/param_spec.rb
+0
-0
No files found.
lib/rails_param/param.rb
View file @
5187e6a6
spec/fixtures/controllers.rb
View file @
5187e6a6
spec/rails_integration_spec.rb
View file @
5187e6a6
...
@@ -42,7 +42,7 @@ describe FakeController, type: :controller do
...
@@ -42,7 +42,7 @@ describe FakeController, type: :controller do
expect
{
get
:edit
,
params
}.
to
raise_error
{
|
error
|
expect
{
get
:edit
,
params
}.
to
raise_error
{
|
error
|
expect
(
error
).
to
be_a
(
RailsParam
::
Param
::
InvalidParameterError
)
expect
(
error
).
to
be_a
(
RailsParam
::
Param
::
InvalidParameterError
)
expect
(
error
.
param
).
to
eql
(
"first_name"
)
expect
(
error
.
param
).
to
eql
(
"first_name"
)
expect
(
error
.
options
).
to
eql
({
:required
=>
true
})
expect
(
error
.
options
).
to
eql
({
:required
=>
true
})
}
}
end
end
...
@@ -63,7 +63,7 @@ describe FakeController, type: :controller do
...
@@ -63,7 +63,7 @@ describe FakeController, type: :controller do
expect
{
get
:index
,
sort:
"foo"
}.
to
raise_error
{
|
error
|
expect
{
get
:index
,
sort:
"foo"
}.
to
raise_error
{
|
error
|
expect
(
error
).
to
be_a
(
RailsParam
::
Param
::
InvalidParameterError
)
expect
(
error
).
to
be_a
(
RailsParam
::
Param
::
InvalidParameterError
)
expect
(
error
.
param
).
to
eql
(
"sort"
)
expect
(
error
.
param
).
to
eql
(
"sort"
)
expect
(
error
.
options
).
to
eql
({
:in
=>
[
"asc"
,
"desc"
],
:default
=>
"asc"
,
:transform
=>
:downcase
})
expect
(
error
.
options
).
to
eql
({
:in
=>
[
"asc"
,
"desc"
],
:default
=>
"asc"
,
:transform
=>
:downcase
})
}
}
end
end
end
end
...
...
spec/rails_param/param_spec.rb
View file @
5187e6a6
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment