Created
March 21, 2009 18:23
-
-
Save listrophy/82931 to your computer and use it in GitHub Desktop.
users.size == 0... i think it should be 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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