similar to: Keeping Up with Trunk

Displaying 20 results from an estimated 5000 matches similar to: "Keeping Up with Trunk"

2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all, I feel like I''m missing something really easy and I''m just not seeing it. I''m using the restful_authentication plugin and have a User model. Uesr has_many :things and Thing belongs_to :user. That''s it. I did a "script/generate rspec_scaffold thing" to generate all the necessary bits. The "rake db:migrate" to create the db. At
2007 Jun 24
6
mocking errors
What is the correct way to mock out the errors on a Rails model? I''m assuming i need to say @mock_thing = mock_model(Thing) @mock_thing_errors = mock("errors") @mock_thing_errors.should_receive(:full_messages).and_return("An error") @mock_thing.should_receive(:errors).and_return(@mock_thing_errors) Just wanted to check the best practice on this kind of thing and how
2008 Mar 19
3
svn externals and git submodules
This is a request to split up the repository into at least two repositories rspec rspec_core (loaded as svn_external or git submodule) rspec_on_rails (loaded as svn_external or git submodule) We could load the plugins the same way as before ruby script/plugin install http://rspec.rubyforge.org/svn/trunk/rspec_core ruby script/plugin install
2007 Nov 28
6
Broken edge
Hi all, Not sure if I''m the only one with this problem... We''re on edge for both rails and rspec, and i just did an update... Some apparently innocuous rails stuff was updated, and then half my specs broke due to an error in rspec_on_rails: ArgumentError in ''UserController without logged in user should show the index page'' wrong number of arguments (2
2007 Dec 28
3
Converting to Rails 2.0.2
I''m moving an older project to Rails 2.0.2 and ran into a roadblock on the version matching. Here''s script/console session: >> Spec::VERSION::REV => "1785" >> Spec::Rails::VERSION::REV NoMethodError: undefined method `run='' for Test::Unit:Module from /Users/sxross/rails/tastie_work/vendor/plugins/rspec_on_rails/ lib/spec/rails.rb:16 from
2007 Oct 11
2
Incompatibility Issues after updating CURRENT
Hi, I''m using piston to manage rspec and rspec_on_rails in vendor/plugins. ---- ~/work/simplify_md $ piston st vendor/plugins/ vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec) vendor/plugins/rspec_on_rails (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails) ---- After I ''piston update''d rspec and
2007 Sep 27
2
1.0.8 tarball problem.
When I untar 1.0.8 after having downloaded it from rubyforge, I get these errors: <snip> rspec-1.0.8/spec/spec/runner/spec_parser_spec.rb rspec-1.0.8/spec/spec/spec_classes.rb gzip: stdin: decompression OK, trailing garbage ignored rspec-1.0.8/spec/spec/translator_spec.rb rspec-1.0.8/spec/spec_helper.rb rspec-1.0.8/UPGRADE tar: Child returned status 2 tar: Error exit delayed from
2007 Jan 19
3
problems updating to 0.7.5.1
Hi all I''ve upgraded the rails plugin from 0.7.5 to 0.7.5.1 (plugin/remove rspec_on_rails followed by : ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_5_1/rspec_on_rails/vendor/plugins/rspec_on_rails I''ve also updated the rspec gem and removed the older version. I''m running rubygems 0.9.1 on a windows box however, when I try to run a spec
2007 May 30
6
authentication mocks
hi I''m using restful_authentication and have controller specs working using users fixtures (and login_as) however i''ve been trying for hours without success to do it without fixtures, using mocks and stubs instead. anyone here done this? got code? :) thanks
2007 May 30
4
Using mocks
I''ve just started doing TDD/BDD and like the idea of mocks. So I set out to use them. The doc pages seem great, I setup the mock and then it just works. Here is what I am trying to do: Myuser is a non-rails model of user attributes. We are going to be mocking the connection to the ldap server. The user class has a login method that connects to the ldap server and if successful,
2007 Apr 13
3
rspec on rails won''t install
Hi: This command: svn co svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0/rspec_on_rails/vendor/plugins/rspec_on_rail Gives me this output: svn: URL ''svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0/rspec_on_rails/vendor/plugins/rspec_on_rails'' doesn''t exist If I go the ''script/plugin install'' route, I get "Export complete." Anybody know
2006 Nov 22
1
rspec_on_rails (MissingSourceFile)
Hi there, I''ve installed rspec, rails plugin & generators thusly: $ sudo gem install rspec $ sudo gem install rspec_generator $ sudo gem install zentest -v 3.4.1 $ ./script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec $ ./script/generate rspec $ ./script/generate rspec_model ModelName With Rails version: $ rails
2007 Oct 23
6
Problem Upgrading from 1.0.5 to 1.0.8
Hey Guys, I''m getting the following error: 1) NameError in ''ProductsController with a GET to /products NO NAME (Because of Error raised in matcher)'' uninitialized constant Spec::Mocks::BaseExpectation::AnyArgsConstraint /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:86:in
2006 Dec 07
3
Newbie Error Running specs
I''m new to rspec. I just installed these: rspec (0.7.4) RSpec-0.7.4 (r1201) (rspec gem) rspec_on_rails .3 plugin (on vendor/plugin) I''ve set up a simple spec - spec/library/test_spec.rb: require File.dirname(__FILE__) + ''/../spec_helper'' context "test context" do setup do #nothing end specify "nothing to specify" do
2008 May 09
3
rspec version to use with git
I want to start using RSpec in an existing project that uses git for SCM, and I was planning on using git submodules to pull in known-stable releases of the rspec and rspec_on_rails plugins. The current repositories on github don''t seem to be set up to help with this at the moment though, so I''m looking for some advice. Here''re the issues, I think: * The last
2007 May 25
4
rspec on rails update question
I''m sure this is OT but I''d appreciate the help I''m using rspec_on_rails I prefer to use stable release rather than live dangerously (at least until I can tell the difference between what I might be doing wrong vs problems in rspec). However, I would like to try the RspecScaffoldGenerator fix. I installed (per the docs) last week with the following commands
2006 Dec 23
2
Having trouble installing the Rails plugin with Rspec 0.7.5
Hi, I''m running Rails 1.1.6 and just installed RSpec 0.7.5. When I try to install the appropriate Rails plugin, it just says that "Export Complete" and doesn''t install anything to vendor. I can do it with older version, but then it''s not compatible with RSpec. Any ideas? blissdev:~/code/rails/client/wordone > ruby script/plugin install
2007 Feb 23
1
Error on http://rspec.rubyforge.org/documentation/rails/install.html
One of the links to the subversion repository is wrong. Under the heading which starts: If your own project is in Subversion and you?d like RSpec on Rails to always follow HEAD, install with -x: the second link: ruby script/plugin install -x svn://rubyforge.org/var/svn/rspec/trunk/ rspec_on_rails/vendor/plugin/rspec_on_rails should be: ruby script/plugin install -x
2007 May 07
7
Installing plugins without svn:// access
Hi, I''m trying to get up and running with rspec on a new project. I''d like to install the rspec and rspec_on_rails plugins (per http://rspec.rubyforge.org/documentation/rails/install.html), but my corporate firewall blocks port 3690 so I can''t access the repository via svn:// I searched the docs and the mailing-list archive to figure out how to install the plugins
2007 Dec 19
5
Installation Trouble
Hey all, I''m new to BDD and rspec, but I am very intrigued. I tried installing rspec and rspec_on_rails into my Rails app, but I am having some trouble. I chose to install both as plugins, as the documentation suggests. I checked out the CURRENT tag from svn, and copied the rspec and rspec_on_rails directories into my app''s vendor/plugins directory. Then I ran