search for: railsexamplegroup

Displaying 9 results from an estimated 9 matches for "railsexamplegroup".

2008 May 23
3
RailsExampleGroup
So I have a describe which is a subclass of RailsExampleGroup. I inserted some data into my database, and reconnect! my connection. Before reconnect, finding the data I just created is fine. The data cannot be found, after reconnection, the data is gone. It''s not in the database. It looks to me the data is not actually inserted into the DB at all, ju...
2007 Nov 26
8
Renaming RailsExample to RailsExampleGroup
Fyi, I made the following renames: * RailsExample -> RailsExampleGroup * FunctionalExample -> FunctionalExampleGroup * ControllerExample -> ControllerExampleGroup * ViewExample -> ViewExampleGroup * HelperExample -> HelperExampleGroup * ModelExample -> ModelExampleGroup This was done to keep the naming consistent with ExampleGroup.
2009 Feb 05
1
[rspec] [rails] Specing a form builder
...#39;s sort of what I''ve got at the moment. #template# supposed to be an object with access to all the normal helpers, I _think_. using helper in that location gives me a NoMethodError. using self in that location ends up with the helper trying to delegate methods to Spec::Rails::Example::RailsExampleGroup::Subclass .... has anybody figured out what hoops this needs? -- // anything worth taking seriously is worth making fun of // http://blog.devcaffeine.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/2...
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned from github... there isn''t any .gemspec file or rake task that does this. Any help? -- Posted via http://www.ruby-forum.com/.
2007 Dec 12
3
undefined method: controller_name
...nerate rspec, I get the following error: kwigger:~/workspace/eTriever-spec-tmp alvin$ script/spec --backtrace spec/unit/controllers/application_controller_spec2.rb ./spec/unit/controllers/application_controller_spec2.rb:10: undefined method `controller_name'' for Spec::Rails::Example::RailsExampleGroup::Subclass_1:Class (NoMethodError) from /Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:39:in `module_eval'' from /Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb...
2008 Oct 12
0
How to test with RSpec a Rails plugin using “link_to” and “current_page?”
...lper def initialize(base) @base = base end def link @base.link_to(name, url_options, html_options) @base.current_page?(url_options) end end And I get this error with RSpec: Undefined method `link_to'' for #< Spec::Rails::Example::RailsExampleGroup::Subclass_1:0x24afa90> Any clue? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org T...
2007 Dec 09
1
[rspec-devel] rspec_on_rails (trunk - r3070) works with Rails 2.0.1
...n >> ... >> >> >> - test? >> >> >> - test? >> >> >> - test? (FAILED - 5) >> >> Spec::Rails::Example::FunctionalExampleGroup >> - test? (ERROR - 6) >> >> >> - test? >> >> Spec::Rails::Example::RailsExampleGroup >> - test? >> >> Pending: >> >> >> JD >> >> >> >> On Dec 7, 2007, at 4:39 PM, James Deville wrote: >> >>> I think I just found it. I had rspec 1.0.8 unpacked as a gem in >>> vendor/gems >>> >>> H...
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
RSpeckers: I''m trying to install this into a Merb-generated RSpec rig: http://code.jeremyevans.net/doc/fixture_dependencies/ It requires inserting their test case into RSpec. This is the documented way to do it: describe ''Post'' do inherit FixtureDependencies::SequelTestCase And that leads to the syntax error in the subject line. (No stack trace is available
2008 Mar 17
8
should have_tag outside Rails
Hi Google has not helped me here. I''m looking for a way to use the have_tag assert_select wrapper outside RSpec on Rails (but in a Rails project) so I can use it to check text strings. Has anyone managed this? Thanks Ashley -------------- next part -------------- An HTML attachment was scrubbed... URL: