Sha256: eb0ed08db2debdd167a2fd355ecc63262d538e1db67de6176a3e3ff2a8897317

Contents?: true

Size: 912 Bytes

Versions: 2

Compression:

Stored size: 912 Bytes

Contents

require 'spec_helper'

describe "series_statement_merges/new.html.erb" do
  before(:each) do
    assign(:series_statement_merge, stub_model(SeriesStatementMerge,
      :series_statement_id => 1,
      :series_statement_merge_list_id => 1
    ).as_new_record)
    @ability = Object.new
    @ability.extend(CanCan::Ability)
    controller.stub(:current_ability) { @ability }
  end

  it "renders new series_statement_merge form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => series_statement_merges_path, :method => "post" do
      assert_select "input#series_statement_merge_series_statement_id", :name => "series_statement_merge[series_statement_id]"
      assert_select "input#series_statement_merge_series_statement_merge_list_id", :name => "series_statement_merge[series_statement_merge_list_id]"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_resource_merge-0.0.3 spec/views/series_statement_merges/new.html.erb_spec.rb
enju_resource_merge-0.0.2 spec/views/series_statement_merges/new.html.erb_spec.rb