Sha256: ead4c66d8ad93fce1d00d56a2f1eea0555f02ea5e813bdea141774fadfe8e3fb
Contents?: true
Size: 372 Bytes
Versions: 14
Compression:
Stored size: 372 Bytes
Contents
require 'spec_helper' describe "users/index" do fixtures :all before(:each) do assign(:users, User.page(1)) view.stub(:current_user).and_return(User.find('admin')) end it "renders a list of users" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => 'admin' end end
Version data entries
14 entries across 14 versions & 1 rubygems