Skip to content

Instantly share code, notes, and snippets.

@hbdev012
hbdev012 / bdd.txt
Created June 19, 2012 08:43
BDD and TDD ref.
http://www.lukeredpath.co.uk/blog/developing-a-rails-model-using-bdd-and-rspec-part-1.html
http://www.typeoneerror.com/articles/post/tutorial-rails-with-rspec-spork-and-guard-from-scratch
http://pure-rspec-rubynation.heroku.com/
http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html
https://github.com/felipecsl/saasquatch.git
http://www.jasongrimes.org/2011/06/free-clouds-setting-up-wordpress-on-a-free-amazon-ec2-instance/
describe "GET current" do
before do
@request.cookies['hidden_notices'] = "1,#{notices(:permanent).id}"
get :current, :format => 'js'
end
it { should respond_with(:success) }
it { should set_cookie(:hidden_notices).to("#{notices(:permanent).id}") }
it { should render_template('notices/current') }
end