Skip to content

Instantly share code, notes, and snippets.

/Users/zdennis/source/mhs_projects/quest/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:58:in `parse_or_fail': features/expenses_reimbursements/staff_member_editing_submitted_expense_reimbursements.feature:46:3: Parse error, expected one of (Cucumber::Parser::SyntaxError)
, """, Given, When, Then, And, But, #, @, Scenario:, Scenario Outline:. from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:20:in `parse_file'
Webrat.configure do |config|
config.mode = :selenium
end
class Cucumber::Rails::World
def wait_for_ajax(timeout = 15000)
selenium.wait_for_condition "window.Ajax.activeRequestCount == 0", timeout
end
def wait_for_effects(timeout = 15000)
== without rescue_from
=== rails 2.2.2
* raising an error explicitly is propagated up the controller spec.
* raising an error implicitly (ie: unknown method) propagates the error to the controller spec
=== rails 2.1.2
* raising an error explicitly is propagated up the controller spec.
* raising an error implicitly (ie: unknown method) propagates the error to the controller spec
#!/usr/bin/ruby
require 'rubygems'
require 'ar-extensions'
require 'active_record'
require 'ostruct'
class TextFile
module DescribeMethods
def file(identifier, global_field_options={})
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
describe "/items/edit.html.erb" do
def with_escaped_text(text)
pattern = Regexp.escape ERB::Util.html_escape(text)
with_tag("*", Regexp.new(pattern, Regexp::IGNORECASE))
end
before(:each) do
@item = mock_model(Item)
<%=h status %>
<% content_for :footer %>
<%=h footer %>
<% end %>
xml = '<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
</response>
</multistatus>'
doc = Nokogiri::XML(xml)
doc.search "/multistatus"
/Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:209:in `initialize': wrong number of arguments (2 for 1) (ArgumentError)
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:209:in `new'
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:209:in `execute_examples'
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:208:in `each'
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:208:in `execute_examples'
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:99:in `run'
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:23:in `run'
from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/rspec/lib/spec/ru
SubdomainFu.tld_sizes = {:development => 1,
:test => 1 ,
:selenium => 1,
:staging => 2,
:production => 1} # set all at once (also the defaults)
$ bin/spec spec
/Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/heckle_runner_spec.rb:5: Foo is not a module (TypeError)
from /Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:15:in `load'
from /Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:15:in `load_files'
from /Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:14:in `each'
from /Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:14:in `load_files'
from /Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/vendor/plugins/rspec/lib/spec/runner/options.rb:97:in `run_examples'
from /Users/zdennis/source/opensource_projects/rspec-dev/example_rails_app/ve