search for: rails_spec_server

Displaying 12 results from an estimated 12 matches for "rails_spec_server".

2007 Jan 22
1
Observed models cause failures with DRBSpec ?
...1 specification, 0 failures $ drbspec spec F 1) ''A user with an inactive and an active project should be able to return active projects only'' FAILED [] should == [#<Spec::Mocks::Mock:0xb75590bc @name="active", @options={}>] ./spec/models/user_spec.rb:11: script/rails_spec_server:17:in `run'' script/rails_spec_server:38: Finished in 0.024455 seconds 1 specification, 1 failure # spec/models/user_spec.rb require File.dirname(__FILE__) + "/../spec_helper" context "A user with an inactive and an active project" do setup do @user = User.ne...
2006 Oct 15
0
DRb delays using rails_spec_server?
I''ve been successfully using rails_spec_server for some time. Somehow, in the process of deleting and recreating my rspec directory a few times for SVN (or, less believably, in the process of building SVN 1.4.0 and its dependencies), something got hosed. Now, script/rails_spec takes 5-10 seconds to get past DRb.start_server. This is on a...
2006 Dec 25
1
Issues with 0.7.5
...e command is: rake spec:autotest I immediately ran into several problems: 1. rspec_autotest.rb line 30 has curly quotes and makes Ruby choke 2. Same line, rails_spec is spelled solid, when it should have the underscore But fixing these didn''t get me back going. Now I have to have a rails_spec_server running in one console window (is this recommended practice?) and rake spec:autotest gives me: (druby://localhost:8989) /opt/local/lib/ruby/gems/1.8/gems/ rspec-0.7.5/lib/spec/runner/command_line.rb:23:in `run'': File or directory not found: ?diff (RuntimeError) from (druby:/...
2006 Sep 06
3
DRb error when using rails_spec on OS X
Hi, all- I started playing with RSpec in a new Rails app. I''ve installed the plugin and bootstrapped it, and run ''script/rails_spec_runner'' (not rails_spec_server as the website currently reads, btw) in a separate shell, then in another shell I run ''script/rails_spec'' and get the following: /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo'': getaddrinfo: No address associated with nodename (SocketError) from /usr/loca...
2007 Mar 27
2
mocking/stubbing newbie questions
...ser.find(1) end end the spec results: 1) Spec::Mocks::MockExpectationError in ''GET /users/1/terms should find all terms associated with the user'' User expected :find with ("1") once, but received it 0 times ./spec/controllers/terms_controller_spec.rb:43: ./script/rails_spec_server:21:in `run'' ./script/rails_spec_server:42: Thanks for any help in advance, Scott
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
...in zentest redgreen, but that is not used any more) To use directly, it is very simple. In rspec_autotest/lib/ rspec_autotest.rb, add a -c to the spec_command in the initializer function: @spec_command = "spec -c --diff unified" This won''t help however if you want to use rails_spec_server. To do that I patched rspec_0.7.5 to add an option to force the adding of colour codes (I did it this way because I assumed the check for output==Kernel was important for some other situation and I didn''t want to just throw it away): diff -upr rspec-0.7.5/lib/spec/runner/formatter...
2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
Hi. I''m upgrading a project from an 0.8.0 pre-release gem to 0.8.2. I''ve installed the 0.8.2 gem, and the rspec_on_rails 0.8.2 plugin: ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec When I try to run my specs though, I get the below error. It''s as if the spec_helper cannot find "spec/rails". I''ve noticed that
2006 Dec 01
1
Specifying lib classes in a Rails app
The rpsec-on-rails app defines a great structure for specifying all of the constituent parts of a rails app. Does anybody have any advice for where to put tests for lib code that you include to support your app, and how to fit it in to the rake:spec rake task. Cheers Steve
2006 Dec 21
7
rspec_autotest no longer re-runs tests with rspec 0.7.5
Has anyone else encountered this problem? What I mean is, rspec_autotest runs all specs, then waits. When you change a spec, it reruns that spec. However, if that spec now passes, it should run the whole suite again, so you can see the next one to work on. It no longer does this. This renders it somewhat useless. Does anyone have autotest working with rspec 0.7.5, or does anyone have any
2007 Feb 27
8
Using a subversion repository to spec in a rails app
Is it a bad practice to use a subversion repository to the trunk of rspec and rspec_on_rails? Or rather, is it doomed to fail, since my gem will always be out of date? I know I can''t use spec, installed from gem,s if I have the latest revision of rspec and rspec_on_rails checked into my plugins directory. But I should still be able to use it with the --drb option, correct?
2007 Mar 28
14
Autotest
Is anyone using rspec with autotest? Scott
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing out releases via Rubyforge''s gem server and update the website. We have therefore made the first beta of 0.9 available - both prepackaged and tagged in subversion (see below). RSpec 0.9 introduces a new API for expectations, which essentially means that your underscores go away (there has been other discussions