Skip to content

Commit

Permalink
clean up per robucop
Browse files Browse the repository at this point in the history
  • Loading branch information
npauzenga committed Jan 31, 2016
1 parent cc8d628 commit b161d2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions spec/controllers/game_nights_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
expect(serialize(game_night)).to eq(response.body)
end

it "conforms to JSON schema" do
it "conforms to JSON schema" do
post :create, params
assert_schema_conform
end
Expand Down Expand Up @@ -249,13 +249,14 @@
end

describe "GET #index" do
let(:game_night1) { create(:game_night) }
let(:game_night1) { create(:game_night) }
let(:game_night2) { create(:game_night) }
let(:game_night3) { create(:game_night) }

let(:list) { [game_night1, game_night2, game_night3] }

let(:index_profile_context) do
Interactor::Context.new(errors: :val,
game_nights: [game_night1, game_night2, game_night3])
Interactor::Context.new(errors: :val, game_nights: list)
end

before(:example) do
Expand Down
3 changes: 2 additions & 1 deletion spec/interactors/index_game_night_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
end

it "sets game_nights to an array of game_nights" do
expect(subject.game_nights).to eq([game_night1, game_night2, game_night3])
expect(subject.game_nights).
to eq([game_night1, game_night2, game_night3])
end
end

Expand Down

0 comments on commit b161d2f

Please sign in to comment.