Skip to content

Instantly share code, notes, and snippets.

@listrophy
Created March 21, 2009 18:23
Show Gist options
  • Save listrophy/82931 to your computer and use it in GitHub Desktop.
Save listrophy/82931 to your computer and use it in GitHub Desktop.
users.size == 0... i think it should be 2
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
describe "/users/index.html.haml" do
include UsersHelper
fixtures :users
before(:each) do
assigns[:users] = users
print "\nuser size: #{users.size}\n"
end
it "renders a list of users" do
render
response.should have_tag("tr td", /firstUser/, 1)
response.should have_tag("tr td", /secondUser/, 1)
end
end
one:
login: firstUser
crypted_password: MyString
password_salt: MyString
persistence_token: MyString
single_access_token: MyString
perishable_token: MyString
login_count: 42
two:
login: secondUser
crypted_password: MyString
password_salt: MyString
persistence_token: MyString
single_access_token: MyString
perishable_token: MyString
login_count: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment