Sha256: 372de4755383bfd07b243b88ce678142deed847ce2f11ecf6d13514a596354b6
Contents?: true
Size: 857 Bytes
Versions: 21
Compression:
Stored size: 857 Bytes
Contents
require 'rails_helper' describe "budget_types/show" do before(:each) do @budget_type = assign(:budget_type, stub_model(BudgetType, name: "Name", display_name: "MyText", note: "MyText", position: 1 )) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return double(update?: true) render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Name/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/1/) end end
Version data entries
21 entries across 21 versions & 1 rubygems