Sha256: d8f24c3a45ea84bb54f61e2e109d4dcf291d6f0e30cffc335a1f396a89effb18

Contents?: true

Size: 475 Bytes

Versions: 11

Compression:

Stored size: 475 Bytes

Contents

require 'rails_helper'

describe "manifestations/show.json.jbuilder" do
  fixtures :all

  before(:each) do
    assign(:manifestation, FactoryBot.create(:manifestation))
    allow(view).to receive(:policy).and_return double(show?: true, create?: false, udpate?: false, destroy?: false)
  end

  it "renders a template" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/original_title/)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.17 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.16 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.15 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.14 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.13 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.12 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.11 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.10 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/manifestations/show.json.jbuilder_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/manifestations/show.json.jbuilder_spec.rb