similar to: problem with scope_out

Displaying 20 results from an estimated 70000 matches similar to: "problem with scope_out"

2009 Mar 15
0
rspec-rails 1.2.0 Released
rspec-rails version 1.2.0 has been released! * <http://rspec.info/> * <http://wiki.github.com/dchelimsky/rspec> * <http://wiki.github.com/dchelimsky/rspec/rails> * <http://wiki.github.com/dchelimsky/rspec/upgrades> Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.0 IMPORTANT INFORMATION: Due to changes in Rails-2.3, there are some changes in
2007 Sep 22
1
Testing RESTful routes
Hi all, The app I am making right now uses restful routing entirely. I want to prevent people from accessing my actions without the proper HTTP verb so I commented out the :controller/:action/:id catch all routes that were used in pre-RESTful Rails apps. Like so: #map.connect '':controller/:action/:id.:format'' #map.connect '':controller/:action/:id''
2007 May 22
3
rspec_on_rails'' spec:doc and dry runs
In rspec_on_rails, the spec:doc task uses --dry-run, which doesn''t jive well with rspec''s ability to write docs for you. For example, I use the rspec_expectation_matchers plugin from spicycode.com (scanned for a name, didn''t find one =), and end up writing specs like: it { @ticket.should validate_presence_of(:name) } Which results in specdocs such as: Ticket
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
2010 Nov 10
0
no output from rspec -- fixed
Resend from 10/29/2010 due to bounce back. This is in reference to an email sent to the group on On Oct 18, 2010, at 1:24 AM. Short version: The solution was indeed to downgrade to test-unit 1.2.3 gem ''test-unit'', ''1.2.3'' Longer version: I went through my github repository and found a version of my gemfile that worked with rspec. I then carefully compared
2008 Mar 20
1
Combining autotest, rspec, rspec_on_rails and spec-server
Hello, I''ve been trying to google the definitive way to combine autotest, rspec, and spec-server, but to no avail. It seems like there are lots of suggestions from old versions. Furthermore, some commands such as rake:autotest don''t seem to be around anymore. So, is it required to install ZenTest as a gem? I have version 3.9.1. I believe this gets me the autotest
2007 Dec 22
1
Rails: Specing libraries
I was reading the documentation on using rails with rspec and I didn''t see anything about how to spec libraries in the rails /lib directory so that they''re integrated into the whole spec::rails system. Where should I put specs for my libraries, and what''s the best way to require the files that I''m testing in my spec? I''ve never used rspec before, and
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
2006 Sep 29
0
Living Dangerously?
how can I get the benefits of integration testing with Rspec on Rails REL_0_6_3, please? When I first started playing with Rspec on Rails, I hacked spec_helper.rb to include the IntegrationTest interface (diff below) as it was the minimum change I could make to get the the ability to run multiple actions across controllers in my spec. I use it to specify authenticated sessions and stuff.
2007 Oct 05
0
RSpec Trunk - Successful : Rake Aborted
$ rake spec --trace (in /work/workspace/ng) ** Invoke spec (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump ** Invoke db:test:purge (first_time) ** Invoke environment ** Execute
2006 Oct 04
3
spec task prints usage
A small feature request. When running the spec rake task, if any of the folders ''spec/models'', ''spec/controller'', or ''spec/views'' doesn''t exist or if they don''t contain any specs, the spec usage is printed. In my case I didn''t have a views directory. I was able to get rid of the usage output by creating the
2008 Jun 12
1
Which "get" is being used in Controller spec
Hi, I''m a bit puzzled with "get" in controller specs. When I write, it "should render index template" do get :index response.should render_template(:index) end Which "get" method is being used? I checked RDoc of RSpec and RSpec on Rails, but didn''t find "get". In Rails RDoc, I found the following "get"s. get
2007 Dec 10
2
Duplicate error messages
I am running rails 1.2.3 and rspec 1.0.8 on os X 10.4 and I am having a problem with one of my model specs (User class). For some reason rspec is throwing repeating errors. If the error I expect is "email is required", I end up getting it several times. What''s even more confusing, my spec passes without DRB, but with DRB is when all the multiple errors show up. At the moment I
2007 May 23
2
rspec mocha and controller specs without integrated_views
The ability to choose a mocking framework is great as I prefer mocha, but I am have problems. On my controller specs, I am forced to ''integrate_views'' as the following code below shows you, the mocking of views is rspec specific. See stub! versus mocha''s stub unless block_given? unless integrate_views?
2009 Jul 07
1
scope_out plugin
hi i want to install scope out plugin script/plugin install http://scope-out-rails.googlecode.com/svn/trunk but i get the error plugin not found i use window what should i do? thanks in advance -- Posted via http://www.ruby-forum.com/.
2007 Feb 02
7
Coming Soon...
Dear spec''ers, As many of you already know, we''re gearing up for a pretty big 0.8 release of RSpec in the next couple of weeks. I''m writing in advance because I want to give you a heads up about upcoming changes and how they may impact your existing specs. Two important things to note first: 1. We will provide a translator that you''ll be able to use to
2009 Feb 05
2
[Cucumber] Progress Bar
Inspired by Nick Evans'' RSpec progress bar[1], I had a little crack at implementing the progress bar for cucumber, ''cause I want to know how long a break I can take while the features are running :) It''s in my fork, in the coverage_formatter branch: http://github.com/mattwynne/cucumber/tree/master It will dump failing feature, scenario, step and the exception as
2012 May 05
1
rspec-mocks and rspec-rails-2.10.1 are released!
These are patch releases recommended for anybody who has already upgraded to 2.10. ### rspec-mocks-2.10.1 full changelog: http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1 Bug fixes * fix [regression of edge case behavior](https://github.com/rspec/rspec-mocks/issues/132) * fixed failure of `object.should_receive(:message).at_least(0).times.and_return value` * fixed failure
2008 Jun 01
0
Mixing mocking frameworks?
First, it was great meeting a bunch of you at RailsConf. Recently I''ve run into a problem using RSpec, namely its support for multiple mocking frameworks. Wait you say, isn''t that a good thing? Yes, it is until you end up mixing frameworks. I was writing my latest app, and I choose to get the app working and then add in the authentication system. So I went and wrote all
2006 Dec 17
0
Best way to do automated acceptance tests
Hi This is only part related to rspec but I asked the Rails list and didn''t get a reply so I thought I''d try here. Basically, since rspec_on_rails doesn''t have an equivalent to rails integration tests, I''m trying to find a way of doing automated acceptance tests. I''ve found selenium and watir, but I''m struggling to tell the two