Sha256: 0c77be12c905c6a95db006e254c7aac913fc919fe0c2a43d80966120e0d406b1
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# coding: utf-8 require 'spec_helper' require 'activeadmin' describe 'browse the test app' do let(:password) { 'foobar•secret' } let(:email) { 'john@doe.com' } before do Mongoid.purge! AdminUser.create! email: email, password: password end before { visit '/admin' } it 'does something' do I18n.t('active_admin.devise.login.submit').should eq('Login') # Auth fill_in 'Email', with: email fill_in 'Password', with: password click_on 'Login' # New click_on 'Posts' click_on 'New Post' fill_in 'Title', with: 'dhh screencast' fill_in 'Body', with: 'is still the best intro to rails' # Create click_on 'Create Post' within '.attributes_table.post' do page.should have_content('dhh screencast') page.should have_content('is still the best intro to rails') end # Edit click_on 'Edit Post' fill_in 'Title', with: 'DHH original screencast' # Update click_on 'Update Post' within '.attributes_table.post' do page.should have_content('DHH original screencast') page.should have_content('is still the best intro to rails') end # List within('.breadcrumb') { click_on 'Posts' } within '#index_table_posts' do page.should have_content('DHH original screencast') page.should have_content('is still the best intro to rails') end page.should have_content('Displaying 1 Post') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-mongoid-0.2.0 | spec/features/smoke_spec.rb |