On Dec 3, 2010, at 8:11 PM, Erik Helin wrote:
>
>
> On Fri, Dec 3, 2010 at 16:43, Matt Wynne wrote:
>
> On 1 Dec 2010, at 05:47, helino wrote:
>
> > Hi everyone,
> >
> > I've started learning Ruby and RSpec, and I've ran into a small
> > problem. I have one "before" functions which run befor
On Dec 2, 2010, at 4:53 AM, Piotr Zolnierek wrote:
> Is it possible to read which formatter is being used? For instance if -
> f d is used to output additional information or is there a better way
> to do that?
For now you can get it from RSpec.configuration.formatter, but that is a)
unofficial
I'm having issues getting color to work when I'm running my tests.
I'm writing a gem and using RSpec 2.1.0. I'm using JRuby-1.5.3
installed by RVM on OSX10.6
I have a rake task defined like so:
Rspec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = "spec/**/*_spec.rb"
spec.rspec_opts = ['
Hi all,
I've spent a fair bit of time googling but couldn't find the answer to
this question. Any insight would be greatly appreciated. Basically I'm
specking my ActionMailer instance & I would like to use
ControllerExampleGroup's method assigns(). How can I specify which
type of ExampleGroup rspe
Previously on rails 2.x
I have been able to test the content of my html actionmailer emails.
In rspec 1.x:
@mailer = OrderMailer.create_receipt(@order)
@mailer.body.should have_tag('.order_number')
@mailer.body.should have_tag('.billing_address')
@mailer.body.should have_tag('.delivery_address')
On Dec 3, 2010, at 11:07 AM, Martin Hawkins wrote:
> Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
>
> I have:
>
> Factory.define :season_date do |f|
> f.season_date Date.new(2011,9,24)
> f.date_type "season_start"
> end
>
> RSpec.configure do |config|
> config.mock_with :rspec
> end
>
> Facto
On Dec 2, 2010, at 4:31 AM, Log0 wrote:
> Hi all,
>
> I am new to RSpec, currently using rspec-rails (2.1.0) with rails (2.2.3)
For rails-2 you need to use rspec-rails-1.3.1 (rspec-rails-2.x supports only
rails ~> 3.0).
> and ruby (1.8.7). I can get RSpec running however the stacktrace when i
I'm having a similar problem.
Marnen Laibow-Koser-2 wrote:
>
> I am new to ROR. Trying to going through tutorial, but couldn't run
> rspec (command not found). Everything was installed as directed.
> Search the hold drive, found spec file and spec.bat in the following
> directories
>
> ./us
On Dec 2, 2010, at 10:12 AM, Martin Volerich wrote:
> David:
>
> Glad to see that your book was just published. It's been a life-changing read!
>
> I'm struggling with the best way to integrate autotest working in a rails
> project with RSpec 2. The latest autotest 4.4.6 gem seems to retire it a
On Fri, Dec 3, 2010 at 16:43, Matt Wynne wrote:
>
> On 1 Dec 2010, at 05:47, helino wrote:
>
> > Hi everyone,
> >
> > I've started learning Ruby and RSpec, and I've ran into a small
> > problem. I have one "before" functions which run before all my
> > descriptions and the context in the spec, an
On Dec 2, 2010, at 4:20 AM, Andi Schacke wrote:
> Hi
>
> in the config block of rspec I have a before block to reset my
> database before each spec:
>
> config.before(:each) {DatabaseCleaner.clean}
>
> I know I can apply this before to a specific type, e.g.
>
> config.before(:each, :type => :
On Nov 29, 2010, at 2:24 PM, E. Litwin wrote:
> I'm getting undefined local variable or method `users_path' (as an
> example) my request spec tests after upgrading to 2.2.0 from 2.1.0.
Grab the rspec-rails-2.2.1 release, which fixed a bug that I think, as a
side-effect, will resolve your issue.
On 1 Dec 2010, at 05:47, helino wrote:
> Hi everyone,
>
> I've started learning Ruby and RSpec, and I've ran into a small
> problem. I have one "before" functions which run before all my
> descriptions and the context in the spec, and then I have another
> "before" function inside a context, whi
I adapted the first lines of service_spec.rb according to Jason's code:
require File.dirname(__FILE__) + '/../service'
require 'rspec' # was 'spec' (Jason)
#require 'spec/interop/test' # no idea what this was
require 'rack/test'
require 'test/unit'
Hi everyone,
I've started learning Ruby and RSpec, and I've ran into a small
problem. I have one "before" functions which run before all my
descriptions and the context in the spec, and then I have another
"before" function inside a context, which is set to run once before
all the "it" inside that
Is it possible to read which formatter is being used? For instance if -
f d is used to output additional information or is there a better way
to do that?
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-us
David:
Glad to see that your book was just published. It's been a life-changing read!
I'm struggling with the best way to integrate autotest working in a rails
project with RSpec 2. The latest autotest 4.4.6 gem seems to retire it as a
standalone gem and go back to ZenTest - which I assume does
I'm getting undefined local variable or method `users_path' (as an
example) my request spec tests after upgrading to 2.2.0 from 2.1.0.
I haven't really changed these tests from the generated code but am
curious as to why they are failing now.
require 'spec_helper'
describe "Users" do
describe
Yeah, that's a major pain...
I put my stuff up here: https://gist.github.com/720605
And later on I found:
https://github.com/pauldix/service-oriented-design-with-ruby
I tried to include comments about what I changed to get it to work.
When I found pauldix's, it looked like he had made pretty muc
Hi all,
I am new to RSpec, currently using rspec-rails (2.1.0) with rails (2.2.3)
and ruby (1.8.7). I can get RSpec running however the stacktrace when it
happened is pretty uninformative, always not including the line in which the
assertion failed. I tried to google around for some keywords but d
Hi
in the config block of rspec I have a before block to reset my
database before each spec:
config.before(:each) {DatabaseCleaner.clean}
I know I can apply this before to a specific type, e.g.
config.before(:each, :type => :model) {DatabaseCleaner.clean}
but what I want to achieve is that the
I'm getting undefined local variable or method `users_path' (as an
example) my request spec tests after upgrading to 2.2.0 from 2.1.0.
I haven't really changed these tests from the generated code but am
curious as to why they are failing now.
require 'spec_helper'
describe "Users" do
describe
I'm getting undefined local variable or method `users_path' (as an
example) my request spec tests after upgrading to 2.2.0 from 2.1.0.
I haven't really changed these tests from the generated code but am
curious as to why they are failing now.
require 'spec_helper'
describe "Users" do
describe
I get the same error message as Jason. However installing rack-test did
not help in my case. (I am new to Ruby, and don't yet know how to use
the debugger)
Tried with rvm use 1.9.2 and rvm use 1.8.7
Generally I am a bit disappointed that the code from the book needed a
number of changes to get
Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
I have:
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
f.date_type "season_start"
end
RSpec.configure do |config|
config.mock_with :rspec
end
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
f.date_ty
On Dec 3, 2010, at 5:37 AM, Zhi-Qiang Lei wrote:
> Hi,
>
> This piece of code does not work. Does anybody know the cause?
>
>
> describe "/loan-events/{source-id}-lend.json" do
>describe "GET" do
> it "should call all method of LoanEvent with source_id" do
>source_id = rand(10
Hi,
This piece of code does not work. Does anybody know the cause?
describe "/loan-events/{source-id}-lend.json" do
describe "GET" do
it "should call all method of LoanEvent with source_id" do
source_id = rand(1000)
LoanEvent.should_receive(:all).with(:source_id => so
27 matches
Mail list logo