Sha256: 4cef8b9b94014835a104275210c4ecfa1331c56080850e25c94b78674753d46e

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

describe "<%= ns_table_name %>/show" do
  let(:<%= ns_file_name %>) { build_stubbed :<%= ns_file_name %> }

  before do
    assign :<%= ns_file_name %>, <%= ns_file_name %>
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stationed-0.4.0 lib/templates/rspec/scaffold/show_spec.rb
stationed-0.3.0 lib/templates/rspec/scaffold/show_spec.rb
stationed-0.2.0 lib/templates/rspec/scaffold/show_spec.rb
stationed-0.1.0 lib/templates/rspec/scaffold/show_spec.rb
stationed-0.0.1 lib/templates/rspec/scaffold/show_spec.rb