Sha256: b158f93bae6d2f50a08db95f91a35d040a1356300a7d75f6cc312d2c7dcf862a
Contents?: true
Size: 868 Bytes
Versions: 8
Compression:
Stored size: 868 Bytes
Contents
require 'spec_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
8 entries across 8 versions & 1 rubygems