More syntax goodness #27

Closed
russCloak opened this Issue Mar 1, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@russCloak

Capital F is red, and periods are still green. See screen shot: https://skitch.com/russcloak/8gjna/application-helper-spec.rb-rpp-web-app

@cyphactor

This comment has been minimized.

Show comment
Hide comment
@cyphactor

cyphactor Mar 1, 2012

Owner

Need more context for this one.

On Thu, Mar 1, 2012 at 10:26 AM, russCloak <
reply@reply.github.com

wrote:

Capital F is red, and periods are still green. See screen shot:
https://skitch.com/russcloak/8gjna/application-helper-spec.rb-rpp-web-app


Reply to this email directly or view it on GitHub:
#27

Andrew De Ponte

WebSite (Blog/Resume/Photos):
http://andrewdeponte.com

GitHub: @cyphactor
Twitter: @cyphactor

Owner

cyphactor commented Mar 1, 2012

Need more context for this one.

On Thu, Mar 1, 2012 at 10:26 AM, russCloak <
reply@reply.github.com

wrote:

Capital F is red, and periods are still green. See screen shot:
https://skitch.com/russcloak/8gjna/application-helper-spec.rb-rpp-web-app


Reply to this email directly or view it on GitHub:
#27

Andrew De Ponte

WebSite (Blog/Resume/Photos):
http://andrewdeponte.com

GitHub: @cyphactor
Twitter: @cyphactor

@russCloak

This comment has been minimized.

Show comment
Hide comment
@russCloak

russCloak Mar 1, 2012

Sure thing, steps to reproduce:

  1. Run tests successfully
  2. Cause a syntax error (i.e. remove the "i" from an: it "whatever" do)
  3. Run tests again.

See output below

Finished in 0.11861 seconds
7 examples, 0 failures

Running: spec/helpers/application_helper_spec.rb
Done.

Running tests with args ["--color", "--failure-exit-code", "2", "--format", "progress", "--format", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--require", "/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/guard-rspec-0.6.0/lib/guard/rspec/formatters/notification_rspec.rb", "spec/helpers/application_helper_spec.rb"]...
Exception encountered: #<NoMethodError: undefined method `t' for #<Class:0x007fdae2bff120>>
backtrace:
/Users/rcloak/WebApps/realpractice/rpp_web_app/spec/helpers/application_helper_spec.rb:99:in `block (2 levels) in <top (required)>'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `module_eval'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `subclass'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:187:in `describe'
/Users/rcloak/WebApps/realpractice/rpp_web_app/spec/helpers/application_helper_spec.rb:18:in `block in <top (required)>'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `module_eval'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `subclass'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:187:in `describe'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/dsl.rb:18:in `describe'
/Users/rcloak/WebApps/realpractice/rpp_web_app/spec/helpers/application_helper_spec.rb:3:in `<top (required)>'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `block in load'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `block in load_spec_files'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `map'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load_spec_files'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:22:in `run'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/monkey/spork/test_framework/rspec.rb:7:in `run_tests'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:13:in `block in run'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/forker.rb:21:in `block in initialize'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/forker.rb:18:in `fork'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/forker.rb:18:in `initialize'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:9:in `new'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:9:in `run'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/server.rb:48:in `run'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop'

Running: spec/helpers/application_helper_spec.rb
Done.

Running tests with args ["--color", "--failure-exit-code", "2", "--format", "progress", "--format", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--require", "/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/guard-rspec-0.6.0/lib/guard/rspec/formatters/notification_rspec.rb", "spec/helpers/application_helper_spec.rb"]...
.......

Finished in 0.11964 seconds
7 examples, 0 failures

Sure thing, steps to reproduce:

  1. Run tests successfully
  2. Cause a syntax error (i.e. remove the "i" from an: it "whatever" do)
  3. Run tests again.

See output below

Finished in 0.11861 seconds
7 examples, 0 failures

Running: spec/helpers/application_helper_spec.rb
Done.

Running tests with args ["--color", "--failure-exit-code", "2", "--format", "progress", "--format", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--require", "/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/guard-rspec-0.6.0/lib/guard/rspec/formatters/notification_rspec.rb", "spec/helpers/application_helper_spec.rb"]...
Exception encountered: #<NoMethodError: undefined method `t' for #<Class:0x007fdae2bff120>>
backtrace:
/Users/rcloak/WebApps/realpractice/rpp_web_app/spec/helpers/application_helper_spec.rb:99:in `block (2 levels) in <top (required)>'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `module_eval'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `subclass'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:187:in `describe'
/Users/rcloak/WebApps/realpractice/rpp_web_app/spec/helpers/application_helper_spec.rb:18:in `block in <top (required)>'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `module_eval'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:201:in `subclass'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:187:in `describe'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/dsl.rb:18:in `describe'
/Users/rcloak/WebApps/realpractice/rpp_web_app/spec/helpers/application_helper_spec.rb:3:in `<top (required)>'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `block in load'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `block in load_spec_files'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `map'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load_spec_files'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:22:in `run'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/rspec-core-2.8.0/lib/rspec/monkey/spork/test_framework/rspec.rb:7:in `run_tests'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:13:in `block in run'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/forker.rb:21:in `block in initialize'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/forker.rb:18:in `fork'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/forker.rb:18:in `initialize'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:9:in `new'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:9:in `run'
/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/spork-0.9.0/lib/spork/server.rb:48:in `run'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop'
/Users/rcloak/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop'

Running: spec/helpers/application_helper_spec.rb
Done.

Running tests with args ["--color", "--failure-exit-code", "2", "--format", "progress", "--format", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--require", "/Users/rcloak/.rvm/gems/ruby-1.9.3-p125@rpp_web_app/gems/guard-rspec-0.6.0/lib/guard/rspec/formatters/notification_rspec.rb", "spec/helpers/application_helper_spec.rb"]...
.......

Finished in 0.11964 seconds
7 examples, 0 failures

@russCloak

This comment has been minimized.

Show comment
Hide comment

cyphactor added a commit that referenced this issue Aug 7, 2012

Resolved syntax error identified in issue #27.
The big issue with issue #27 is that it wasn't identifying the end of
the running tests block. So, I added the keyword 'Done' to the ending
regex to make sure the next test is colored correctly. I also added
'backtrace' as an ending identifier to prevent backtraces at that level
from being colored. This resolves issue #27.
@cyphactor

This comment has been minimized.

Show comment
Hide comment
@cyphactor

cyphactor Aug 7, 2012

Owner

Closing this issue as it has now been resolved.

Owner

cyphactor commented Aug 7, 2012

Closing this issue as it has now been resolved.

@cyphactor cyphactor closed this Aug 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment