Sha256: 83f83c14c8e1e87a1155f74766ee795e2252a1aba4011365975b820aefb95eed

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

require 'rails_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

9 entries across 7 versions & 2 rubygems

Version Path
enju_library-0.2.3 spec/views/libraries/show.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/views/libraries/show.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/views/libraries/show.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.2 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.1 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.10 spec/views/libraries/show.html.erb_spec.rb
enju_library-0.2.0.beta.9 spec/views/libraries/show.html.erb_spec.rb