Sha256: a61c8f6ce35be632c452e5b497431f5ca85456c54e3c2a6abfacd6b0b4df4fdd
Contents?: true
Size: 1012 Bytes
Versions: 5
Compression:
Stored size: 1012 Bytes
Contents
require 'spec_helper' RSpec.configure do |c| Warden.test_mode! end describe "datastreams/edit.html.erb" do let(:object) { FactoryGirl.create(:content_model) } 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) visit fcrepo_admin.edit_object_datastream_path(object, "descMetadata") } after do user.delete object.delete Warden.test_reset! end it "should provide an upload form to replace content" do end it "should provide a text field to edit/replace text content" do fill_in "content", :with => <<EOS <dc xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <dcterms:title>Altered Test Component</dcterms:title> </dc> EOS click_button I18n.t("fcrepo_admin.datastream.edit.submit") object.reload object.title.should == "Altered Test Component" end end
Version data entries
5 entries across 5 versions & 1 rubygems