Sha256: 8823b074e18ede4c0b6c335f002f058fe1ba7ae9f90c5caa1626d70cf358105c

Contents?: true

Size: 403 Bytes

Versions: 13

Compression:

Stored size: 403 Bytes

Contents

require 'rails_helper'

describe "manifestations/show.txt.erb" do
  fixtures :all

  before(:each) do
    assign(:manifestation, FactoryBot.create(:manifestation))
  end

  it "renders info" do
    allow(view).to receive(:policy).and_return double(create?: true)
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/1/)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
enju_biblio-0.3.6 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.4.0.beta.2 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.4.0.beta.1 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.5 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.4 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.3 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.2 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.1 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.0 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.0.rc.1 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.3.0.beta.2 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.5 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.4 spec/views/manifestations/show.txt.erb_spec.rb