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

Version Path
enju_library-0.3.11 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.10 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.9 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.8 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.8.rc.2 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.8.rc.1 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.4.0.rc.1 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.7 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.6 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.4.0.beta.4 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.4.0.beta.3 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.4.0.beta.2 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.4.0.beta.1 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.5 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.4 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.3 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.2 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.1 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.0 spec/views/budget_types/show.html.erb_spec.rb
enju_library-0.3.0.rc.1 spec/views/budget_types/show.html.erb_spec.rb