Sha256: 60eee9e8e7edc02e545fdfd626ebfe1456ccd1303adc82370ad37052bec3a99b

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'

feature 'Users' do
  background do
    rom.relations.users.insert(name: 'Jane')
    rom.relations.users.insert(name: 'Joe')
  end

  scenario 'I see user list on index page' do
    visit '/users'

    expect(page).to have_content('Jane')
    expect(page).to have_content('Joe')
  end

  scenario 'I can search users' do
    visit '/users/search?name=Jane'

    expect(page).to have_content('Jane')
    expect(page).to_not have_content('Joe')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-rails-0.2.1 spec/dummy/spec/features/users_spec.rb
rom-rails-0.2.0 spec/dummy/spec/features/users_spec.rb