search for: global_fixtur

Displaying 6 results from an estimated 6 matches for "global_fixtur".

Did you mean: global_filter
2007 Mar 15
5
rake spec:views no transaction error
Hello, I have recently upgraded to the 0.8.2 release of rSpec, and I am receiving the following message with each view spec execution: WARNING: there is no transaction in progress I have upgraded the rspec_on_rails plugin as well, and both the model and controller tests are working flawlessly. Is there some simple step I missed? thanks for the input. -Chris -------------- next part
2008 Feb 18
5
uh... fixtures?
...ails, and set up a model spec on Post. Here''s the spec_helper.rb lines: config.use_transactional_fixtures = true config.use_instantiated_fixtures = false config.fixture_path = RAILS_ROOT + ''/test/fixtures/'' # borrow existing ones ^ config.global_fixtures = :posts, :topics, :users And here''s a Beast test translated into a spec: describe Post do fixtures :forums, :moderatorships, :monitorships, :posts, :topics, :users it ''should require body for post'' do @post = topics(:pdi).posts.build @post.valid?...
2012 Mar 22
1
Rspec not loading fixtures
...But I don''t know why. Below is the code, with my narrative with *** before it... Can you see anything or give me a clue where to look. So far I am coming up empty... Thanks! Pito Salas **** In spec_helper.rb, which I know is running, I see: Spec::Runner.configure do |config| config.global_fixtures = :all end **** One of the tests in spec/controllers/downloads_controller_spec.rb is below. I know it is running and I know that before the ''describe'', Partner.count == 0, so no fixture. require File.expand_path(File.dirname(__FILE__) + ''/../spec_helper'') de...
2007 Sep 27
0
fixture_scenarios in trunk
.../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/fixtures/'' Anyone got any pointers on getting this running? This particular application uses railsengines (both rails and engines are gem versions of 1.2 (rails 1.2.3...
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi I just did an update to lates trunk ================= context "Given a generated venue_spec.rb with fixtures loaded" do fixtures :venues specify "fixtures should load two Venues" do Venue.should have(2).records end end ================== gives me ========== 1) TypeError in ''Given a generated venue_spec.rb with fixtures loaded fixtures should load two
2008 May 22
14
Specifying certain tables NOT to be cleared each example?
Is it possible to specify that certain tables not be cleared on each example. I''ve inherited a project where a good amount of enumerated data is stored in the database (US States, statuses, about 15-20 tables worth. Over all, it''s a reasonable decision that leads to solid production code (acts_as_enumerated is good). This data is read-only and relatively static; any