Sha256: b0b95d4639cd695c5b4ed33eb9de36ef0a4d0f672325e07ee817deadaf8de013

Contents?: true

Size: 278 Bytes

Versions: 15

Compression:

Stored size: 278 Bytes

Contents

require 'rails_helper'

RSpec.describe "categories/show", :type => :view do
  before(:each) do
    @category = assign(:category, Category.create!(
      :name => "Name"
    ))
  end

  it "renders attributes in <p>" do
    render
    expect(rendered).to match(/Name/)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.3.1 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.3.0 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2.6 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2.5 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2.4 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2.3 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2.2 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2.1 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.2 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.1 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.0.4 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.0.3 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.0.2 examples/store-api/spec/views/categories/show.html.erb_spec.rb
restspec-0.0.1 examples/store-api/spec/views/categories/show.html.erb_spec.rb