Skip to content

Commit

Permalink
fixing broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmesquita committed Oct 12, 2016
1 parent eb537be commit ca0510e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/integration/basic/edit/rails_admin_basic_edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@

it 'shows associated objects' do
is_expected.to have_selector '#fan_team_ids' do |select|
expect(select[0]).to have_selector 'option[selected="selected"]'
expect(select[1]).not_to have_selector 'option[selected="selected"]'
expect(select[2]).not_to have_selector 'option[selected="selected"]'
options = select.all 'option'

expect(options[0]['selected']).to eq 'selected'
expect(options[1]['selected']).to eq nil
expect(options[2]['selected']).to eq nil
end
end
end
Expand Down

0 comments on commit ca0510e

Please sign in to comment.