Sha256: ec02709038a48c173d94574a3a64ff15f24fdbc1387c4da2d1f059f554da4108
Contents?: true
Size: 828 Bytes
Versions: 5
Compression:
Stored size: 828 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) assign(:library_group, LibraryGroup.site_config) 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
5 entries across 5 versions & 1 rubygems