Skip to content

Instantly share code, notes, and snippets.

group :development do
gem 'guard', :require => false
end
group :development, :test do
gem 'jasminerice', :git => 'git://github.com/noelrappin/jasminerice.git' # for Jasmine 1.2
gem 'guard-jasmine'
end
group :test do
@coreyhaines
coreyhaines / state_spec.rb
Created March 21, 2012 21:05
Dealing with AR pollution
module CoderetreatLive::Coderetreats
# this Coderetreat gets loaded instead of the AR
class Coderetreat
include States
end
describe "The states a coderetreat can be in" do
let(:retreat) { Coderetreat.new }
example "Going through the day of a coderetreat" do
retreat.should be_not_started
retreat.start!
@coreyhaines
coreyhaines / .rspec
Last active April 11, 2024 00:19
Active Record Spec Helper - Loading just active record
--colour
-I app
@searls
searls / example-gists.md
Created November 17, 2011 23:57
Some Jasmine fun!

some tricky test moments in Jasmine

If you know RSpec, Jasmine is easy! But some common uses of JavaScript may not be as immediately obvious.

Try to use Jasmine (you could use your own setup or just tryjasmine.com) to write some specs that cover cases like these. The links will load up an example.