Sha256: 7583cb9ca1cb5a922c7f81b6ca5fe1928b777f9fbcc09dee59bce21e046186c7
Contents?: true
Size: 320 Bytes
Versions: 57
Compression:
Stored size: 320 Bytes
Contents
require 'rails_helper' RSpec.describe "tests/show", type: :view do before(:each) do @test = assign(:test, Test.create!( :price => 2.5, :name => "MyText" )) end it "renders attributes in <p>" do render expect(rendered).to match(/2.5/) expect(rendered).to match(/MyText/) end end
Version data entries
57 entries across 57 versions & 1 rubygems