Sha256: 0752e293f2bd9ab842e4a5231924ebb2b25b1b4153a2f4e8199736e5dd740687
Contents?: true
Size: 775 Bytes
Versions: 7
Compression:
Stored size: 775 Bytes
Contents
require 'spec_helper' describe "checkouts/edit" do fixtures :checkouts, :users, :user_has_roles, :roles before(:each) do @checkout = assign(:checkout, checkouts(:checkout_00001)) assign(:new_due_date, 1.day.from_now) view.stub(:current_user).and_return(User.where(username: 'enjuadmin').first) end it "renders the edit checkout form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", action: checkouts_path(@checkout), method: "post" do assert_select "input#checkout_user_id", name: "checkout[user_id]" assert_select "input#checkout_item_id", name: "checkout[item_id]" assert_select "input#checkout_due_date", name: "checkout[due_date]" end end end
Version data entries
7 entries across 7 versions & 1 rubygems