search for: test_spec

Displaying 7 results from an estimated 7 matches for "test_spec".

Did you mean: test2spec
2006 Dec 07
3
Newbie Error Running specs
I''m new to rspec. I just installed these: rspec (0.7.4) RSpec-0.7.4 (r1201) (rspec gem) rspec_on_rails .3 plugin (on vendor/plugin) I''ve set up a simple spec - spec/library/test_spec.rb: require File.dirname(__FILE__) + ''/../spec_helper'' context "test context" do setup do #nothing end specify "nothing to specify" do #nothing end end When I run this spec as follows: spec spec/library/test_spec.rb (or any spec for that...
2006 Dec 27
2
DB-less rspec_on_rails
Hi! I''m still struggling with RSpec to get it working with a Rails application, that does not use a database. I removed all the db:* dependencies from the RSpec targets, but it still wants to connect to a database. Any ideas? bye, Tobias ** Execute spec:models /usr/bin/ruby1.8 -I"/var/lib/gems/1.8/gems/rspec-0.7.5/lib"
2008 Jul 08
1
Strange behaviour with pending specs and implementation_backtrace
...ple_group.description, :state => :pending, :message => message, :backtrace => example.implementation_backtrace ) @remote_service.incoming(:spec_run_example_pending, spec) end end If my code contains a pending example in test_spec.rb like this: it ''should be pending'' do pending end ''example.implementation_backtrace'' contains the correct file path. If I change the implementation to: it ''should be pending'' ''example.implementation_backtrace'' doesn...
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
...n ActionView::Base. If I run ruby test/functional/people_controller_test.rb or ruby test/functional/ account_controller_test.rb, everything runs fine. If I run rake test:functionals, however, I get a "stack level too deep" within url_for within those two test classes. Example output: test_spec {The Account controller A guest (in general)} 001 [should be able to view the sign-up page](The Account controller A guest (in general)): ActionView::TemplateError: stack level too deep On line #8 of app/views/account/start.rhtml 5: <h1>Create a free account in three steps:<...
2013 Mar 28
0
Dude, where's my full description? (bug report & suggested fix in rspec-core 2.13.1)
..."status": "passed", "description": "should == \"an object\"", "full_description": "something in context ", "line_number": 4, "file_path": "./spec/test_spec.rb" } ] } Note that the full_description is missing the matcher documentation. And with ci_reporter 1.8.4, this comes out as a sorry hash indeed, because _only_ the full descriptions are reported to CI. Here''s the trimmed XML output. SPEC-something.xml: <testsuite err...
2009 Mar 04
2
Testing my scripts?
Hello RSpec mailing list, I have a question which I''m sure someone here has a "duh!" answer to. :P A lot of the Ruby programming I do is around installing servers and automating various tasks. The pattern I use goes as follows, I''m sure you''ll see where the gap is. Write a failing test. Write enough Ruby code to make it pass. Continue until I have a class (or
2012 Oct 26
8
Puppet 3.0 rspec and custom resources
I am trying to figure out if I am missing something simple here. After upgrading to puppet 3.0 running puppet-rspec tests that use custom resources from modules in the fixtures directory are failing. I have a module that uses the anchor type and with 2.7.19 it works fine. After upgrading to 3.0 all of the tests are failing with Puppet::Error: Puppet::Parser::AST::Resource failed with