Sha256: 6cfbbcfb8aa1b274a394f29992481f548130880a94a2f070e7993ce83c87187a

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

require 'spec_helper'

describe "libraries/show" do
  fixtures :all
  before(:each) do
    @events = Kaminari::paginate_array([]).page(1)
    assign(:library, FactoryGirl.create(:library, :street => "\tStreet 1-2"))
  end

  it "renders a library detail" do
    allow(view).to receive(:policy).and_return double(create?: true, update?: true)
    render
    expect(rendered).to include "library"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_library-0.2.0.beta.8 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.7 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.6 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.5 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.4 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.3 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.2 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.1 spec/views/libraries/show.html.erb_spec.rb