Sha256: 4d60690fa6d424ff90b0bb3b9f4b7bdaba1d398678eff0d0b47e5958746df106
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
require 'spec_helper' describe "checkouts/show" do fixtures :checkouts, :users, :user_has_roles, :roles, :profiles before(:each) do @checkout = assign(:checkout, stub_model(Checkout, user_id: 2, item_id: 1 )) assign(:library_group, LibraryGroup.site_config) I18n.locale = :en view.stub(:current_user).and_return(User.where(username: 'enjuadmin').first) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return double(update?: true, destroy?: true) render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Due date/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Item identifier/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.2.0.beta.2 | spec/views/checkouts/show.html.erb_spec.rb |
enju_circulation-0.2.0.beta.1 | spec/views/checkouts/show.html.erb_spec.rb |