spec/features/clone_spec.rb in fae-rails-1.2.3 vs spec/features/clone_spec.rb in fae-rails-1.2.4
- old
+ new
@@ -78,8 +78,20 @@
expect(current_path).to eq(edit_admin_release_path(cloned_release))
expect(find_field('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)
+ admin_login
+ visit admin_releases_path
+ page.find('.main_table-clone').click
+
+ eventually {
+ expect(find_field('release_on_prod_false').value).to eq('false')
+ }
+
+ end
+
end
end