spec/features/clone_spec.rb in fae-rails-1.5.1 vs spec/features/clone_spec.rb in fae-rails-1.6.0
- old
+ new
@@ -13,11 +13,11 @@
# support/async_helper.rb
eventually {
cloned_release = Release.find_by_name('Ima Release-2')
expect(cloned_release).to_not be_nil
expect(current_path).to eq(edit_admin_release_path(cloned_release))
- expect(find_field('Name').value).to eq(cloned_release.name)
+ expect(find_field('release_name').value).to eq(cloned_release.name)
# only whiteliested attributes should be cloned
expect(cloned_release.slug).to eq(release.slug)
expect(cloned_release.intro).to eq(release.intro)
expect(cloned_release.body).to eq(release.body)
@@ -75,10 +75,10 @@
# support/async_helper.rb
eventually {
cloned_release = Release.find_by_name('Ima Release-2')
expect(cloned_release).to_not be_nil
expect(current_path).to eq(edit_admin_release_path(cloned_release))
- expect(find_field('Name').value).to eq(cloned_release.name)
+ expect(find_field('release_name').value).to eq(cloned_release.name)
}
end
scenario 'should set on_prod when true to false' do
release = FactoryGirl.create(:release, name: 'Ima Release', vintage: '2012', on_prod: true, price: 13, varietal_id: 2, show: Date.today)