Commit e8f53243 authored by Bruno Michel's avatar Bruno Michel
Browse files

Improve how I run specs

parent e99fea54
--drb --colour
--format Fuubar
--color
--drb
......@@ -35,6 +35,8 @@ gem "rspec-rails", "~>2.3", :groups => [:development, :test]
group :development do
gem "annotate"
gem "autotest"
gem "capistrano"
gem "haml-rails"
gem "jquery-rails"
gem "rails3-generators"
......@@ -43,6 +45,7 @@ end
group :test do
gem "factory_girl_rails", "~>1.0"
gem "fuubar", "~>0.0"
gem "spork", "~>0.8"
gem "webrat", "~>0.7"
end
......
GEM
remote: http://rubygems.org/
specs:
ZenTest (4.4.2)
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (= 3.0.3)
......@@ -33,10 +34,18 @@ GEM
albino (1.2.3)
annotate (2.4.0)
arel (2.0.6)
autotest (4.4.6)
ZenTest (>= 4.4.1)
babosa (0.2.1)
bcrypt-ruby (2.1.4)
builder (2.1.2)
canable (0.1.1)
capistrano (2.5.19)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.0.0)
closure-compiler (0.3.3)
compass (0.10.6)
haml (>= 3.0.4)
......@@ -56,12 +65,17 @@ GEM
rails (~> 3.0.0)
friendly_id (3.1.8)
babosa (~> 0.2.0)
fuubar (0.0.3)
rspec (~> 2.0)
rspec-instafail (~> 0.1.4)
ruby-progressbar (~> 0.0.9)
haml (3.0.25)
haml-rails (0.3.4)
actionpack (~> 3.0)
activesupport (~> 3.0)
haml (~> 3.0)
railties (~> 3.0)
highline (1.6.1)
html_truncator (0.1.1)
nokogiri (~> 1.4)
htmlentities (4.2.3)
......@@ -80,6 +94,13 @@ GEM
treetop (~> 1.4.8)
mime-types (1.16)
mysql2 (0.2.6)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.0.23)
net-ssh-gateway (1.0.1)
net-ssh (>= 1.99.1)
nokogiri (1.4.4)
nono-redis-store (1.0.0)
redis (>= 2.0.0)
......@@ -120,12 +141,14 @@ GEM
rspec-core (2.4.0)
rspec-expectations (2.4.0)
diff-lcs (~> 1.1.2)
rspec-instafail (0.1.5)
rspec-mocks (2.4.0)
rspec-rails (2.4.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.4.0)
ruby-progressbar (0.0.9)
sanitize (1.2.1)
nokogiri (~> 1.4.1)
simple_autocomplete (0.3.6)
......@@ -160,13 +183,16 @@ DEPENDENCIES
acts_as_list (~> 0.1)
albino (~> 1.1)
annotate
autotest
canable (~> 0.1)
capistrano
compass (~> 0.10)
devise (~> 1.1)
erubis (~> 2.6)
factory_girl_rails (~> 1.0)
french_rails (~> 0.2)
friendly_id (~> 3.1)
fuubar (~> 0.0)
haml (~> 3.0)
haml-rails
html_truncator (~> 0.1)
......
require 'spec_helper'
describe DiariesController do
include Devise::TestHelpers
before(:each) do
User.delete_all
Account.delete_all
......
......@@ -50,6 +50,6 @@ class Ruby
end
```
EOS
md.to_html.should == "<p>Mon joli code :\n<pre><code class=\"ruby\"><span class=\"k\">class</span> <span class=\"nc\">Ruby</span>\n<span class=\"k\">end</span></code></pre></p>\n"
md.to_html.should == "<p>Mon joli code :\n<pre><code class=\"ruby\"><span class=\"k\">class</span> <span class=\"nc\">Ruby</span>\n<span class=\"k\">end</span>\n</code></pre></p>\n"
end
end
......@@ -13,6 +13,7 @@ Spork.prefork do
c.mock_with :rspec
c.filter_run :focus => true
c.run_all_when_everything_filtered = true
c.include Devise::TestHelpers, :type => :controller
end
end
......
class ActionController::TestCase
include Devise::TestHelpers
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment