Sha256: e66ae079248f2a71518ff28fc943ef54206855fce8d38c222ceae4728468abb5
Contents?: true
Size: 619 Bytes
Versions: 27
Compression:
Stored size: 619 Bytes
Contents
require 'rails_helper' describe "realizes/new" do fixtures :realize_types before(:each) do assign(:realize, stub_model(Realize, expression_id: 1, agent_id: 1 ).as_new_record) @realize_types = RealizeType.all end it "renders new realize form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", action: realizes_path, method: "post" do assert_select "input#realize_expression_id", name: "realize[expression_id]" assert_select "input#realize_agent_id", name: "realize[agent_id]" end end end
Version data entries
27 entries across 27 versions & 1 rubygems