Commit 5187e6a6 by cole bradley

change tabs back to 2 spaces to resemble original style

parent e17d84f4
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment