require 'spec_helper'

describe "mea/energy_specs/new" do
  before(:each) do
    assign(:mea_energy_spec, stub_model(Mea::EnergySpec,
      :name => "MyString",
      :description => "MyString"
    ).as_new_record)
  end

  it "renders new mea_energy_spec form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form[action=?][method=?]", mea_energy_specs_path, "post" do
      assert_select "input#mea_energy_spec_name[name=?]", "mea_energy_spec[name]"
      assert_select "input#mea_energy_spec_description[name=?]", "mea_energy_spec[description]"
    end
  end
end
