Sha256: 7251f45dd1503d5927f4b5108d4070a97e48a2b7ea9f27479295fb80b0df1a0f

Contents?: true

Size: 404 Bytes

Versions: 10

Compression:

Stored size: 404 Bytes

Contents

require 'rails_helper'

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

  before(:each) do
    assign(:manifestation, FactoryGirl.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

10 entries across 9 versions & 2 rubygems

Version Path
enju_biblio-0.2.3 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.2 spec/views/manifestations/show.txt.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/views/manifestations/show.txt.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.1 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.0 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.0.beta.4 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.0.beta.3 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.0.beta.2 spec/views/manifestations/show.txt.erb_spec.rb
enju_biblio-0.2.0.beta.1 spec/views/manifestations/show.txt.erb_spec.rb