Skip to content

Instantly share code, notes, and snippets.

View Gemfile
group :development do
gem 'guard', :require => false
group :development, :test do
gem 'jasminerice', :git => 'git://' # for Jasmine 1.2
gem 'guard-jasmine'
group :test do
coreyhaines / state_spec.rb
Created Mar 21, 2012
Dealing with AR pollution
View state_spec.rb
module CoderetreatLive::Coderetreats
# this Coderetreat gets loaded instead of the AR
class Coderetreat
include States
describe "The states a coderetreat can be in" do
let(:retreat) { }
example "Going through the day of a coderetreat" do
retreat.should be_not_started
coreyhaines / .rspec
Last active Sep 4, 2019
Active Record Spec Helper - Loading just active record
View .rspec
-I app
searls /
Created Nov 17, 2011
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 to write some specs that cover cases like these. The links will load up an example.

You can’t perform that action at this time.