Skip to content

Instantly share code, notes, and snippets.

Noel Rappin noelrappin

Block or report user

Report or block noelrappin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Gemfile
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 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
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 Sep 4, 2019
Active Record Spec Helper - Loading just active record
View .rspec
--colour
-I app
@searls
searls / example-gists.md
Created Nov 17, 2011
Some Jasmine fun!
View example-gists.md

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.

You can’t perform that action at this time.