search for: rails_exampl

Displaying 8 results from an estimated 8 matches for "rails_exampl".

Did you mean: rails_example
2007 Oct 12
3
Strange mock_model behaviour with ActiveResource model
...ailure: NameError in ''FaCodesController handling GET /fa_codes should assign the found fa_codes for the view'' uninitialized constant Spec::Rails::Initializer (eval):11:in `class'' /home/jhughes/dev/rj/gump_rewrite/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:85:in `add_stubs'' /home/jhughes/dev/rj/gump_rewrite/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:73:in `mock_model'' ./spec/controllers/fa_codes_controller_spec.rb:64: This is with edge rails, trunk rspec and rspec_on_rails. I might have pegged t...
2007 Oct 22
13
An error on edge at -r 2767
...h the following: SQLite3::SQLException in ServiceConfig with minimum set of valid parameters should return nil for the service path'' SQL logic error or missing database C:/development/sandbox/prototypes/user_admin_client/config/../vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:17:in `before_eval'' None of my code had changed. All specs worked *immediately* prior to the ''svn up'' this morning. Now all are broken immediately after the svn up. I am trying to track this down but hoping for some "Help ..." . Cheers! sinclair ------...
2007 Nov 07
1
LoadError when upgraded to latest rspec trunk
...dor/plugins/rspec/lib/spec/test.rb to define Spec::Test (LoadError) from /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'' from /app/trunk/vendor/plugins/rspec_on_rails_old/lib/spec/rails/dsl/behaviour/rails_example.rb:6 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/...
2007 Oct 26
7
rspec_autotest failing
...ksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin the accepted method of auto testing specs? It''s an old article, and after grabbing the plugin, and giving it a run, it fails with: $ rake spec:autotest:rails trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:31: undefined method `before'' for Spec::Rails::DSL::RailsExample:Class (NoMethodError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''...
2007 Oct 02
0
Rails 2.0 & rspec edge - not protected_against_forgery?
...in ''ApplicationHelper login-logout when logged in should show the name of the current user'' undefined method `protect_against_forgery?'' for #<#<Class:0x3219118>: 0x34e1f94> /Users/jcf/dev/work/sim/vendor/plugins/rspec_on_rails/lib/spec/rails/ dsl/behaviour/rails_example.rb:41:in `method_missing'' /Users/jcf/dev/work/sim/app/helpers/application_helper.rb:8:in `login_logout'' ./spec/helpers/application_helper_spec.rb:28: I have looked into patching rspec to include the "protect_against_forgery?" helper, but it''s included dyna...
2007 Sep 27
0
fixture_scenarios in trunk
...narios.rb:33:in `create_fixtures'' ../vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:26:in `create_fixtures'' ../vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:257:in `load_fixtures'' ../vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/ rails_example.rb:27:in `before_eval'' At the moment I am only using global fixtures for one model, I have tried removing this line and its still the same error. config.global_fixtures = :sites and I have added the trailing slash to my fixture path config.fixture_path = RAILS_ROOT + ''/spec...
2007 Oct 31
6
Autotest busted with Rspec/Rails trunk
Just upgraded to latest rails and rspec builds and my autotest doesnt work undefined method `before'' for Spec::Rails::DSL::RailsExample:Class (NoMethodError) Here''s the full trace: http://pastie.caboo.se/112754 Any ideas? -- Posted via http://www.ruby-forum.com/.
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.