spec/features/datastreams/edit.html.erb_spec.rb in fcrepo_admin-0.3.5 vs spec/features/datastreams/edit.html.erb_spec.rb in fcrepo_admin-0.4.0
- old
+ new
@@ -3,10 +3,10 @@
RSpec.configure do |c|
Warden.test_mode!
end
describe "datastreams/edit.html.erb" do
- let(:object) { FactoryGirl.create(:content_model) }
+ let(:object) { FactoryGirl.create(:item) }
let(:user) { FactoryGirl.create(:user) }
before {
object.permissions = [{type: 'user', name: user.email, access: 'edit'}]
object.save
login_as(user, :scope => :user, :run_callbacks => false)