Skip to content

Commit

Permalink
Merge pull request #27 from npauzenga/tasks/rubocop-dot-position
Browse files Browse the repository at this point in the history
change DotPosition cop to agree with Hound
  • Loading branch information
npauzenga committed Nov 24, 2015
2 parents 34589c2 + 64b65b2 commit 93221a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ Style/StringLiterals:

Style/SymbolArray:
Enabled: true

Style/DotPosition:
EnforcedStyle: trailing
8 changes: 4 additions & 4 deletions spec/controllers/users_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
end

before(:example) do
allow(CreateUser).to receive(:call).with(interactor_input)
.and_return(interactor_context)
allow(CreateUser).to receive(:call).with(interactor_input).
and_return(interactor_context)
end

context "when valid params are given" do
Expand Down Expand Up @@ -84,8 +84,8 @@
let(:context) { double(:context, success?: true, user: confirmed_user_1) }

before(:example) do
allow(ShowUser).to receive(:call).with(arguments)
.and_return(context)
allow(ShowUser).to receive(:call).with(arguments).
and_return(context)
end

context "when user logged in" do
Expand Down
4 changes: 2 additions & 2 deletions spec/features/user_signs_up_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
click_button "Sign Up"
end
expect(current_path).to eq sign_in_path
expect(page)
.to have_content("Thanks! Please check your email to complete sign up")
expect(page).
to have_content("Thanks! Please check your email to complete sign up")
end
end

Expand Down

0 comments on commit 93221a8

Please sign in to comment.