search for: pre_commit

Displaying 16 results from an estimated 16 matches for "pre_commit".

2007 Sep 25
12
Problems with expect_render
Hi there, I''ve been working with RSpec for about a week now, and the process of moving from a Test::Unit + Mocha setup to an RSpec + Mocha environment has been pretty straightforward. Except, I''m having problems with using template.expect_render. I have Mocha enabled with: > config.mock_with :mocha in spec_helper. And then I have a view spec which looks like this:
2007 Apr 17
8
problem with rspec_on_rails and @controller.should_receive(:render) in trunk
...ef new render :layout=>false end I would have loved to create a failing testcase for this, but I couldnt get the rspec test suite running, if i do a simple "rake" in the root rspec directory i get this error: (in /Users/christophsturm/Projects/rspec/example_rails_app) ** Invoke pre_commit (first_time) ** Execute pre_commit ##################################################### running pre_commit against rails edge ##################################################### ##################################################### ruby script/generate rspec_resource purchase order_id:integer cr...
2007 Apr 28
7
[ rspec-Patches-9605 ] Patch for ER 9472, shared behaviour
...7-03-27 12:12 > > Message: > Missed the checkbox. Sorry. > > ---------------------------------------------------------------------- > > Comment By: Bob Cotton (bcotton) > Date: 2007-03-27 12:11 > > Message: > One more thing, rcov is at 100%, but I can''t get pre_commit > > to run. It either runs out of memory, or the stack is too deep. > > ---------------------------------------------------------------------- > > Comment By: David Chelimsky (dchelimsky) > Date: 2007-03-27 04:16 > > Message: > File please. > > ------------------...
2007 Jun 11
3
hpricot as dependency for building rspec?
It looks to me that hpricot is a dependency to building rspec: euclid% rake pre_commit (in /Users/smtlaissezfaire/ruby/projects/rspec/hpricot) rake aborted! Could not find RubyGem hpricot (>= 0.0.0) /Users/smtlaissezfaire/ruby/projects/rspec/hpricot/rakefile:9 (See full trace by running task with --trace) Let me know if I''m wrong. Otherwise, I''ll submit a patch...
2007 Jul 26
5
Coding standards and whitespace
...pec/fixtures/animals.yml example_rails_app/spec/helpers/people_helper_spec.rb example_rails_app/spec/models/person_spec.rb example_rails_app/spec/views/person/create_view_spec.rb example_rails_app/spec/views/person/show_view_spec.rb example_rails_app/spec/watir/person_spec.rb example_rails_app/TODO pre_commit/lib/pre_commit/core.rb pre_commit/lib/pre_commit/pre_commit.rb pre_commit/lib/pre_commit/rspec.rb pre_commit/lib/pre_commit/rspec_on_rails.rb pre_commit/spec/pre_commit/pre_commit_spec.rb pre_commit/spec/pre_commit/rspec_on_rails_spec.rb rspec/CHANGES rspec/examples/auto_spec_description_example.rb...
2007 May 25
1
RCov?
...this, but I''m trying to integrate rcov into my tests. I tried to follow the example located here: http://rspec.rubyforge.org/tools/rcov.html But to my dismay, I just don''t understand what to do. I tried to run that task in the rspec plugins directory, but it threw an error about pre_commit. Regardless though, I want to be able to rcov all of "my" code, so where would I put this, in the regular Rakefile in the app directory? That doesn''t make much sense though, does it? (Questioning because the syntax id different). Anyway, I''m confused, and I could use he...
2007 Mar 20
1
submitting a patch
I''ve created a short patch so that spec.opts can use a single line (or multiple lines for backwards compatibility) for options. I''ve run the specs against spec:trunk I have two questions: 1. I''ve run rake pre_commit, but after the specs are done running, I get this error: rake aborted! ERROR while running webgen: /opt/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27:in `gem_original_require'': no such file to load -- webgen/plugins/tags/tags (LoadError) from /opt/local/lib/rub...
2007 Nov 29
4
Rollbacks, Sqlite3 bug. Has this been reintroduced ?
Hey, I just updated from the edge and it looks like this _issue_ has resurfaced. Yesterday things were working (stories and specs). No code base changes, only rspec and rspec_on_rails After updating today I now need to set <config.txn...fixtures> to false in the spec_helper.rb to get the specs running, the stories are fine. Looks like the fixture loading is trying to start a txn. I
2007 Feb 26
15
drbspec - "no server running"
At times I''ve gotten the message "No Server Running" from drbspec with my rails app. The thing is, the drb server certainly is running! This happened a few times with my model specs. I''m not sure exactly what the problem was there - I believe I was loading up fixtures that didn''t exist. I was calling fixtures :singular_table_name as opposed to
2007 Aug 16
3
Mocking a non-existent method
I don''t like this: i = mock(Integer) i.should_receive(:asdfasdf).and_return(''foo'') puts i.asdfasdf Shouldn''t rspec check to see that :asdfasdf is a valid message to be sending Integer? Joe
2006 Dec 05
0
new directory structure in svn
...n_rails/vendor/plugins/rspec_on_rails If you''re a contributor, I''d recommend blowing away your local copy of the trunk and checking it out anew. You''ll do your work on rspec core in the trunk/rspec, and the rails plugin in trunk/rspec_on_rails. Please be sure to run rake pre_commit from the root before committing (if your a committer) or submitting patches. Thanks, David
2008 Jan 21
0
RSpec 1.1.2, --colour and Windows
...d-output-on-windows-due-missing-rubyopt just-warn-about-windows-no-colour.patch The patch just warn the user about the lack of win32console gem (prior trying to load rubygems) and then revert the color decision to false to avoid garbled output. Since I lack the time to recreate all the scenario (pre_commit and everything) to run the specs, I assume will not affect any other place (since is just for windows). This fix problems when using rake tasks, script/spec and ''spec'' script installed by rubygems. Looking forward for this made into the next version. Regards, -- Luis Lavena M...
2007 Dec 07
0
help please
Hey all, Rails just got tagged 2.0.0, and then 2.0.1. Unfortunately, it includes a changeset from yesterday that breaks rspec''s pre_commit task. I do not have cycles to address this until tonight, and I suspect that everyone is going to be grabbing the 2.0.1 release and become sad when RSpec won''t work with it. If any of you (especially Josh Knowles, who added the feature to rails that is breaking rspec :), care to come up w...
2007 Jul 31
11
helper spec not finding rails core helpers
Hi, My helper specs were going ok until I added a call to a rails DateHelper method in one of my helpers http://api.rubyonrails.com/classes/ActionView/Helpers/ DateHelper.html#M000574 The helper runs fine from my view templates, just dies in the spec test. I boiled my question down to a simple (not too useful) example. I''m not sure what I''m missing. #
2007 Nov 22
11
Initial run of RSpec 1.0.8 on MS-WinXPproSP2
Rails 1.2.5 Ruby 1.8.6 Rake 0.7.3 RSpec 1.0.8 PostgreSQL 8.2.5 I am experiencing a problem with the "rake spec spec" task on an initial trial of rspec. After creating the rails app I installed rspec and rspec_on_rails in the vendor\plugins subdirectory from svn. I then used ruby script\generate rspec_model product. I next manually created the database instances depot_development and
2007 May 24
25
Specs for ApplicationController, where to put them?
The Rails ApplicationController (app/controllers/application.rb) serves as an abstract superclass for all other controllers in a Rails application and is a good place to put methods and filters which you want all of your controllers to use. In my case I''m using it to provide methods such as "current_user" and "logged_in?" etc. By default, RSpec