Skip to content

Instantly share code, notes, and snippets.

@dadarek
Created April 26, 2012 20:30
Show Gist options
  • Save dadarek/2502838 to your computer and use it in GitHub Desktop.
Save dadarek/2502838 to your computer and use it in GitHub Desktop.
module Jasmine
class Config
# Add your overrides or custom config code here
end
end
# Note - this is necessary for rspec2, which has removed the backtrace
module Jasmine
class SpecBuilder
def declare_spec(parent, spec)
me = self
example_name = spec["name"]
@spec_ids << spec["id"]
backtrace = @example_locations[parent.description + " " + example_name]
parent.it example_name, {} do
me.report_spec(spec["id"])
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment