diff --git a/spec/controllers/game_nights_controller_spec.rb b/spec/controllers/game_nights_controller_spec.rb index d653935..dca3c89 100644 --- a/spec/controllers/game_nights_controller_spec.rb +++ b/spec/controllers/game_nights_controller_spec.rb @@ -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 @@ -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 diff --git a/spec/interactors/index_game_night_spec.rb b/spec/interactors/index_game_night_spec.rb index 56cd08e..59dea6b 100644 --- a/spec/interactors/index_game_night_spec.rb +++ b/spec/interactors/index_game_night_spec.rb @@ -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