Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improving test arch

  • Loading branch information...
commit d734920794f2ef46e03a81bd0e791effe5722d8d 1 parent 2ccd5be
mcansky authored
Showing with 4 additions and 21 deletions.
  1. +1 −2  Gemfile
  2. +1 −18 Gemfile.lock
  3. +2 −1  test/unit/user_test.rb
View
3  Gemfile
@@ -67,6 +67,5 @@ gem 'hoptoad_notifier'
# test stuff
group :test do
gem "shoulda"
- gem 'factory_girl_rails', "1.1.beta1"
- gem "rspec-rails", "2.0.0.beta.12"
+ gem 'factory_girl_rails'
end
View
19 Gemfile.lock
@@ -47,7 +47,6 @@ GEM
daemons (1.1.0)
dalli (1.0.0)
declarative_authorization (0.5.1)
- diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
eventmachine (0.12.10)
@@ -114,17 +113,6 @@ GEM
rake (>= 0.8.7)
thor (~> 0.14.4)
rake (0.8.7)
- rspec (2.0.0.beta.12)
- rspec-core (= 2.0.0.beta.12)
- rspec-expectations (= 2.0.0.beta.12)
- rspec-mocks (= 2.0.0.beta.12)
- rspec-core (2.0.0.beta.12)
- rspec-expectations (2.0.0.beta.12)
- diff-lcs (>= 1.1.2)
- rspec-mocks (2.0.0.beta.12)
- rspec-rails (2.0.0.beta.12)
- rspec (= 2.0.0.beta.12)
- webrat (>= 0.7.0)
shoulda (2.11.3)
sqlite3-ruby (1.3.2)
thin (1.2.7)
@@ -137,10 +125,6 @@ GEM
tzinfo (0.3.23)
warden (1.0.3)
rack (>= 1.0.0)
- webrat (0.7.2)
- nokogiri (>= 1.2.0)
- rack (>= 1.0)
- rack-test (>= 0.5.3)
will_paginate (3.0.pre2)
xml-simple (1.0.12)
@@ -153,7 +137,7 @@ DEPENDENCIES
dalli
declarative_authorization
devise!
- factory_girl_rails (= 1.1.beta1)
+ factory_girl_rails
flutie
haml
hoptoad_notifier
@@ -163,7 +147,6 @@ DEPENDENCIES
pg
rails (= 3.0.3)
rails_config
- rspec-rails (= 2.0.0.beta.12)
shoulda
sqlite3-ruby
thin
View
3  test/unit/user_test.rb
@@ -14,7 +14,8 @@ class UserTest < ActiveSupport::TestCase
should ensure_length_of(:password).is_at_least(8)
should ensure_length_of(:password).is_at_most(20)
should validate_uniqueness_of(:name)
- should validate_presence_of(:name)
+ should_not allow_value(nil).for(:name)
+ #should validate_presence_of(:name)
should_not allow_value("admin").for(:name)
should_not allow_value("login").for(:name)
should_not allow_value("logout").for(:name)
Please sign in to comment.
Something went wrong with that request. Please try again.