Re: [rspec-users] Error uccored while evaluating nil.collect

2013-06-07 Thread David Chelimsky
On Fri, Jun 7, 2013 at 5:02 AM, Oliver Jesus wrote: > Hello, I am new to RSpec and I've got error something like this: > You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occurred while evaluating nil.collect > > In my controller: > > def

[rspec-users] Error uccored while evaluating nil.collect

2013-06-07 Thread Oliver Jesus
Hello, I am new to RSpec and I've got error something like this:  You have a nil object when you didn't expect it!  You might have expected an instance of Array.  The error occurred while evaluating nil.collect  In my controller:  def new      @employee_mst = EmployeeMst.new      @branch_mst = Br

[rspec-users] error message for expect{}.should

2012-08-27 Thread Andrew Premdas
Hi all, Having not done any speccing for a few weeks I just spent ages puzzling over why the following code wasn't working it "should require a client" do expect{ }.should raise_error ArgumentError end and giving me a expected ArgumentError, got #__

Re: [rspec-users] error

2012-08-16 Thread David Chelimsky
On Thu, Aug 16, 2012 at 1:06 AM, Fahim Patel wrote: > let me explain this problem > ---rails destroy Please post questions about Rails to the Rails mailing list: https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk __

[rspec-users] error

2012-08-15 Thread Fahim Patel
let me explain this problem ---rails destroythis command destroy model,scaffold etc . problem is that if a model or other structure is exist than ,this command will destroy all the related file to it...good ..till now no problem..

Re: [rspec-users] Error running RSpec on RVM OSX Lion

2012-04-11 Thread David Chelimsky
On Tue, Apr 10, 2012 at 5:28 PM, Ryan Macy wrote: > /Users/ryanmacy/.rvm/gems/ruby-1.9.2-p318/gems/ffi-1.0.11/lib/ffi/ > library.rb:121:in `block in ffi_lib': Could not open library '/usr/lib/ > liblpcapi_ssl.so': dlopen(/usr/lib/liblpcapi_ssl.so, 5): image not > found (LoadError) >        from /U

[rspec-users] Error running RSpec on RVM OSX Lion

2012-04-11 Thread Ryan Macy
/Users/ryanmacy/.rvm/gems/ruby-1.9.2-p318/gems/ffi-1.0.11/lib/ffi/ library.rb:121:in `block in ffi_lib': Could not open library '/usr/lib/ liblpcapi_ssl.so': dlopen(/usr/lib/liblpcapi_ssl.so, 5): image not found (LoadError) from /Users/ryanmacy/.rvm/gems/ruby-1.9.2-p318/gems/ffi-1.0.11/lib/

Re: [rspec-users] Error running rspec on Debian

2011-04-03 Thread David Chelimsky
On Mar 28, 2011, at 8:04 PM, Carlos Torres wrote: > I'm new to Rails and I was planning on trying out RSpec. When I try to > execute the rspec command on Debian v6.0.1, I get the output below: > > k4ru050@DebianBox:~/Desktop/rails_projects/sample_app/spec$ bundle exec rspec > spec/controllers

Re: [rspec-users] Error running rspec on Debian

2011-04-02 Thread Sidu Ponnappa
I just wanted to confirm that you've verified that the exact same codebase has its specs run correctly on a different OS (or flavour of linux, even)? Best, Sidu. http://c42.in http://about.me/ponnappa On 29 March 2011 06:34, Carlos Torres wrote: > I'm new to Rails and I was planning on trying

[rspec-users] Error running rspec on Debian

2011-04-02 Thread Carlos Torres
I'm new to Rails and I was planning on trying out RSpec. When I try to execute the rspec command on Debian v6.0.1, I get the output below: k4ru050@DebianBox:~/Desktop/rails_projects/sample_app/spec$ bundle exec rspec spec/controllers /home/k4ru050/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rspe

Re: [rspec-users] Error Testing a view in RSpec 2

2011-02-23 Thread DI d.
Rafael Felix wrote in post #949668: > > I don't know what method we use to check my views? > > thanks for all > regards if you want to test views with have_tag and rspec2 try this gem: https://rubygems.org/gems/rspec2-rails-views-matchers -- Posted via http://www.ruby-forum.com/. __

Re: [rspec-users] Error Testing a view in RSpec 2

2011-01-05 Thread David Chelimsky
On Jan 5, 2011, at 4:06 PM, Steve Hull wrote: > David Chelimsky wrote in post #949683: >> have_tag wrapped assert_select in a way that was very brittle. Also >> Webrat and Capybara matchers are better :) > > Any tips on how we can use the Capybara matchers in our helper specs? > Seems like a re

Re: [rspec-users] Error Testing a view in RSpec 2

2011-01-05 Thread Steve Hull
David Chelimsky wrote in post #949683: > have_tag wrapped assert_select in a way that was very brittle. Also > Webrat and Capybara matchers are better :) Any tips on how we can use the Capybara matchers in our helper specs? Seems like a reasonable thing to want to do, since helpers are typically

Re: [rspec-users] Error Testing a view in RSpec 2

2010-10-12 Thread David Chelimsky
On Oct 12, 2010, at 7:57 PM, Rafael Felix wrote: > On Oct 12, 9:37 pm, David Chelimsky wrote: >> On Oct 12, 2010, at 7:33 PM, Rafael Felix wrote: >> >>> On Oct 12, 9:24 pm, David Chelimsky wrote: On Oct 12, 2010, at 6:38 PM, Rafael Felix wrote: >> > Well, I'be looking for test my views

Re: [rspec-users] Error Testing a view in RSpec 2

2010-10-12 Thread Rafael Felix
Woah, now works the test, thanks for response. Why the have_tag has removed from RSpec 2? regards On Oct 12, 9:37 pm, David Chelimsky wrote: > On Oct 12, 2010, at 7:33 PM, Rafael Felix wrote: > > > > > > > > > On Oct 12, 9:24 pm, David Chelimsky wrote: > >> On Oct 12, 2010, at 6:38 PM, Rafael F

Re: [rspec-users] Error Testing a view in RSpec 2

2010-10-12 Thread David Chelimsky
On Oct 12, 2010, at 7:33 PM, Rafael Felix wrote: > > On Oct 12, 9:24 pm, David Chelimsky wrote: >> On Oct 12, 2010, at 6:38 PM, Rafael Felix wrote: >> >> >> >> >> >>> Well, I'be looking for test my views with rspec, looking the >>> documentation athttp://rspec.info/rails/writing/views.html

Re: [rspec-users] Error Testing a view in RSpec 2

2010-10-12 Thread Rafael Felix
Changing my test, for user assert_select, an new error is raised it "should be have an p when no company for the tag was found" do assigns[:name] = "Teste" render rendered.should assert_select('h4', "Visualizando empresas pela Tag") end And the error: Failures: 1) tags/search.htm

Re: [rspec-users] Error Testing a view in RSpec 2

2010-10-12 Thread David Chelimsky
On Oct 12, 2010, at 6:38 PM, Rafael Felix wrote: > Well, I'be looking for test my views with rspec, looking the > documentation at http://rspec.info/rails/writing/views.html we see > some examples, in RSpec 2 the response was deprecated and now I'm > using the rendered instead, but this code > >

[rspec-users] Error Testing a view in RSpec 2

2010-10-12 Thread Rafael Felix
Well, I'be looking for test my views with rspec, looking the documentation at http://rspec.info/rails/writing/views.html we see some examples, in RSpec 2 the response was deprecated and now I'm using the rendered instead, but this code describe "tags/search.html.erb" do it "should be have an p w

Re: [rspec-users] Error when trying to run rspec

2010-09-04 Thread David Chelimsky
On Sep 4, 2010, at 12:25 PM, Paul Denlinger wrote: > Just tried to run rspec and got this error message even though the > rspec gem installed successfully: > > > $ spec hello_spec.rb > /Users/pdenlinger/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb: > 340:in `bin_path': can't find executa

[rspec-users] Error when trying to run rspec

2010-09-04 Thread Paul Denlinger
Just tried to run rspec and got this error message even though the rspec gem installed successfully: $ spec hello_spec.rb /Users/pdenlinger/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb: 340:in `bin_path': can't find executable spec for rspec-2.0.0.beta.18 (Gem::Exception) from /Us

Re: [rspec-users] Error while running rspec after unpacking rails gems

2010-06-09 Thread Amiruddin Nagri
Hi David, I am using autospec and it by default runs using 'spec' rather than 'script/spec'. Can you give me a quick direction of how to configure it to use the former. Thanks, Amiruddin Nagri, Bangalore, 560008, KA India Y! IM : amir_na...@yahoo.com GTalk : amir.na...@gmail.com On Tue, Jun 8

Re: [rspec-users] Error while running rspec after unpacking rails gems

2010-06-09 Thread David Chelimsky
On Jun 9, 2010, at 4:45 PM, Amiruddin Nagri wrote: > Hi David, > > I am using autospec and it by default runs using 'spec' rather than > 'script/spec'. Can you give me a quick direction of how to configure it to > use the former. Take a look at http://github.com/rspec/rspec-core/blob/master/Up

Re: [rspec-users] Error while running rspec after unpacking rails gems

2010-06-08 Thread David Chelimsky
On Jun 8, 2010, at 4:05 AM, Amiruddin Nagri wrote: > I have a bunch of rspec test that are running fine when I don't freeze them > in the vendor folder. > > But when I freeze the rails gems, the spec starts failing with the stack > > /home/xuser/myprojects/xproject/config/../vendor/rails/railti

[rspec-users] Error while running rspec after unpacking rails gems

2010-06-08 Thread Amiruddin Nagri
I have a bunch of rspec test that are running fine when I don't freeze them in the vendor folder. But when I freeze the rails gems, the spec starts failing with the stack /home/xuser/myprojects/xproject/config/../vendor/rails/railties/lib/initializer.rb:271:in `require_frameworks': can't activate

Re: [rspec-users] Error: can't convert Rspec::Mocks::Mock to String

2010-05-03 Thread andrea longhi
On 3 Mag, 14:14, David Chelimsky wrote: > I see the same error (hadn't run against 1.9.2 in a while). Reported > tohttp://github.com/rspec/rspec-rails/issues/issue/41 Thanks David. I added this to my spec_helper.rb file Rspec::Mocks::Mock.module_eval do alias to_str to_s end and now it se

Re: [rspec-users] Error: can't convert Rspec::Mocks::Mock to String

2010-05-03 Thread David Chelimsky
On May 3, 2010, at 6:06 AM, andrea longhi wrote: > Hello *, > I started today to test rspec current beta with ruby 1.9.2 and rails > 3.0. I created a basic app with a scaffold. I am experiencing a lot of > failures in the geneated controller spec. I am pasting the complete > error string: > > ca

[rspec-users] Error: can't convert Rspec::Mocks::Mock to String

2010-05-03 Thread andrea longhi
Hello *, I started today to test rspec current beta with ruby 1.9.2 and rails 3.0. I created a basic app with a scaffold. I am experiencing a lot of failures in the geneated controller spec. I am pasting the complete error string: can't convert Rspec::Mocks::Mock to String (Rspec::Mocks::Mock#to_

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2010-02-26 Thread Jason Fb
This happens when you generate tests pre-Rails 2.3 then upgrade to Rails 2.3. go to test/test_helper.rb and change: class Test::Unit::testCase to: class ActiveSupport::TestCase http://www.datatravels.com/technotes/2009/04/21/rails-error-undefined-method-use_transactional_fix/ waseem ahmad wro

Re: [rspec-users] error: stack level too deep

2010-01-21 Thread Pat Maddox
Please provide more context. There should be a stack trace that tells you at which line the error occurs. This problem typically occurs when you have a method that calls itself and has no return mechanism. Sometimes that can be a sloppily implemented method_missing. I can't see anything obvi

[rspec-users] error: stack level too deep

2010-01-21 Thread aaron zhang
hi, guys i write follow code : it "The default should be based on readers to recommend a book tastes" do @pick_book = mock_model(PickBook) @pick_books = [...@pick_book] @recommend_count = 1 PickBook.should_receive(:recommend_books).with(@recommend_

Re: [rspec-users] Error Running Standalone/Command Line rspec: undefined method Pathname

2009-12-12 Thread David Chelimsky
On Sat, Dec 12, 2009 at 11:28 AM, athem wrote: > Hello, > > I've written the following simple rspec test that I'm trying to run > (rspec 1.2.9) standalone (outside Rails) from the command line and > getting the following error.  Any idea for how to fix this?  Thanks. > > $>  spec foo_rspec.rb > >

[rspec-users] Error Running Standalone/Command Line rspec: undefined method Pathname

2009-12-12 Thread athem
Hello, I've written the following simple rspec test that I'm trying to run (rspec 1.2.9) standalone (outside Rails) from the command line and getting the following error. Any idea for how to fix this? Thanks. $> spec foo_rspec.rb /Users/athem/.gem/ruby/1.8/gems/rspec-1.2.9/lib/spec/runner/opt

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-23 Thread Scott Taylor
On Nov 23, 2009, at 11:12 PM, David Chelimsky wrote: > > > On Mon, Nov 23, 2009 at 9:36 PM, Scott Taylor wrote: > > On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote: > >> On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru wrote: >> The syntax for use_fakefs changed in version 0.2.1 and the f

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-23 Thread David Chelimsky
On Mon, Nov 23, 2009 at 9:36 PM, Scott Taylor wrote: > > On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote: > > On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru wrote: > >> The syntax for use_fakefs changed in version 0.2.1 and the fixtures >> for rspec are generating errors, but it can be solved

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-23 Thread Scott Taylor
On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote: > On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru wrote: > The syntax for use_fakefs changed in version 0.2.1 and the fixtures > for rspec are generating errors, but it can be solved easily. > Have to change ... > describe "smth" do > extend

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-23 Thread David Chelimsky
On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru wrote: > The syntax for use_fakefs changed in version 0.2.1 and the fixtures > for rspec are generating errors, but it can be solved easily. > Have to change ... > describe "smth" do > extend FakeFS::SpecHelpers > use_fakefs > ... > end > To..

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-21 Thread Bogdan Dumitru
The syntax for use_fakefs changed in version 0.2.1 and the fixtures for rspec are generating errors, but it can be solved easily. Have to change ... describe "smth" do extend FakeFS::SpecHelpers use_fakefs ... end To... extend FakeFS::SpecHelpers use_fakefs describe "smth" do ... end As i

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-08 Thread David Chelimsky
On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor wrote: > David, I'm still seeing the issue. Thus, here's a transcript of my > activity: > > http://pastie.org/688639 $ gem which fakefs (checking gem bmabey-fakefs-0.1.1.1 for fakefs) /Users/david/.rvm/gems/ruby/1.9.1/gems/bmabey-fakefs-0.1.1.1/lib

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-08 Thread Conrad Taylor
David, I'm still seeing the issue. Thus, here's a transcript of my activity: http://pastie.org/688639 -Conrad On Nov 4, 2:28 pm, David Chelimsky wrote: > On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor wrote: > > Hi, 'rake spec' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. > > Hi Conrad, >

Re: [rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-04 Thread David Chelimsky
On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor wrote: > Hi, 'rake spec' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. Hi Conrad, If this was a problem in the gem, it is now fixed: $ rvm 1.9.1 $ which ruby /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby $ rake spec ... 1522 examples, 0 failures,

[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9

2009-11-04 Thread Conrad Taylor
Hi, 'rake spec' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. I'm getting the following error message when I run the specs: /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ option_parser_spec.rb:21:in `block (2 levels) in ': wrong number of arguments (0 for 1) (ArgumentError)

Re: [rspec-users] error message feedback

2009-07-29 Thread David Chelimsky
On Tue, Jul 28, 2009 at 8:03 PM, rogerdpack wrote: > Question. > > Currently with this test: > >  instance.splatted3().should raise_error(ArgumentError) This should be: lambda { instance.splatted3() }.should raise_error(ArgumentError) See http://rspec.rubyforge.org/rspec/1.2.8/classes/Spec/Mat

[rspec-users] error message feedback

2009-07-29 Thread rogerdpack
Question. Currently with this test: instance.splatted3().should raise_error(ArgumentError) if it's broken, and returns [] instead of raising appropriately, currently the error reported is: expected ArgumentError, got # shouldn't this have been reported as expected ArgumentError, got [] ? Mu

Re: [rspec-users] Error in executing controller spec

2009-05-21 Thread Amit Kulkarni
David Chelimsky wrote: > On Wed, May 20, 2009 at 2:47 AM, Amit Kulkarni > wrote: It is not the case that i will always run spec from the root project.So >> Thank a lot. >> But is the case that all controller specs are run from the root >> directory. >> I had had written spec models and it ru

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 2:47 AM, Amit Kulkarni wrote: > David Chelimsky wrote: >> On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni >> wrote: > script/spec spec/controllers/channels_controller_spec1.rb Hey It worked thanks a lot. :-) Can you tell me the difference why it was

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread Amit Kulkarni
David Chelimsky wrote: > On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni > wrote: script/spec spec/controllers/channels_controller_spec1.rb >>> >>> Hey It worked thanks a lot. :-) >>> >>> Can you tell me the difference why it was not running earlier and now it >>> is running.Just for my under

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread David Chelimsky
On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni wrote: > Amit Kulkarni wrote: >> David Chelimsky wrote: >>> On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni >>> wrote: but i am getting the same error which says  RuntimeError in Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread Amit Kulkarni
David Chelimsky wrote: > On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni > wrote: >> but i am getting the same error which says RuntimeError in >> Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_control >> ./channels_controller_spec1.rb:149: > It looks like you're calling the file f

Re: [rspec-users] Error in executing controller spec

2009-05-20 Thread Amit Kulkarni
Amit Kulkarni wrote: > David Chelimsky wrote: >> On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni >> wrote: >>> but i am getting the same error which says RuntimeError in >>> Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_control >>> ./channels_controller_spec1.rb:149: >> It looks l

Re: [rspec-users] Error in executing controller spec

2009-05-19 Thread David Chelimsky
On Tue, May 19, 2009 at 9:04 AM, Amit Kulkarni wrote: > Hi, > > Thanks for quick response > > My channels_controller_spec.rb file is inside controller spec only > i.e. PROJECT_ROOT/spec/controllers/channels_controller_spec.rb. > > As per your suggestion i removed the setup method and moved > user_

Re: [rspec-users] Error in executing controller spec

2009-05-19 Thread Amit Kulkarni
Hi, Thanks for quick response My channels_controller_spec.rb file is inside controller spec only i.e. PROJECT_ROOT/spec/controllers/channels_controller_spec.rb. As per your suggestion i removed the setup method and moved user_attributes under example groups. but i am getting the same error whi

Re: [rspec-users] Error in executing controller spec

2009-05-19 Thread David Chelimsky
On Tue, May 19, 2009 at 3:30 AM, Amit Kulkarni wrote: > Ruby version : 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] > rspec - 1.2.4 > rails - 2.1.2 > OS - Vista Home > I am running a single file by the command > spec channels_controller(filename)_spec.rb Where is this file? For rspec-rails to k

Re: [rspec-users] Error in executing controller spec

2009-05-19 Thread Amit Kulkarni
Ruby version : 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] rspec - 1.2.4 rails - 2.1.2 OS - Vista Home I am running a single file by the command spec channels_controller(filename)_spec.rb Contents of the file: require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') def setup @c

Re: [rspec-users] Error in executing controller spec

2009-05-08 Thread David Chelimsky
On Fri, May 8, 2009 at 4:03 AM, Amit Kulkarni wrote: > Hello, > >     I am trying to execute controller spec but it gives me error which > says > >     @controller is nil: make sure you set it in your test's setup > method. > > I tried to search for the solution but till now no success :( > > Foll

[rspec-users] Error in executing controller spec

2009-05-08 Thread Amit Kulkarni
Hello, I am trying to execute controller spec but it gives me error which says @controller is nil: make sure you set it in your test's setup method. I tried to search for the solution but till now no success :( Following is the description of the controller spec. describe ChannelCate

Re: [rspec-users] Error using Norwegian with cucumber

2009-04-27 Thread aslak hellesoy
> Hi > > I am experiencing a problem when using Cucumber with Norwegian language. I > have added the files and the stacktrace on gist: > http://gist.github.com/102438 > > The problem is that when we use Når (When) and Så (Then) in the steps file, > it fails with a parser error. If we switch all Når

[rspec-users] Error using Norwegian with cucumber

2009-04-27 Thread Peter Nicolai Motzfeldt
Hi I am experiencing a problem when using Cucumber with Norwegian language. I have added the files and the stacktrace on gist: http://gist.github.com/102438 The problem is that when we use Når (When) and Så (Then) in the steps file, it fails with a parser error. If we switch all Når and Så with G

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-08 Thread David Chelimsky
On Wed, Jan 7, 2009 at 11:26 PM, waseem ahmad wrote: > I have both the rspec 1.1.11 and rspec-rails 1.1.11 as gems. I had them > plugged in my application too. When I removed them from my application the > problem was solved. The version of both the gems and plugins are same. > > Why did this happ

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-07 Thread waseem ahmad
I have both the rspec 1.1.11 and rspec-rails 1.1.11 as gems. I had them plugged in my application too. When I removed them from my application the problem was solved. The version of both the gems and plugins are same. Why did this happen? -- Waseem RwrWrwRwrWrwRwrWrwRwrWrwR B

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-07 Thread Mark Wilden
On Wed, Jan 7, 2009 at 10:26 AM, David Chelimsky wrote: > On Wed, Jan 7, 2009 at 12:20 PM, Mark Wilden wrote: > > FWIW, I was getting this error yesterday. I completely uninstalled rspec > and > > rspec-rails (including David's code from GitHub) and reinstalled, and it > > "went away." > > Which

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-07 Thread David Chelimsky
On Wed, Jan 7, 2009 at 12:20 PM, Mark Wilden wrote: > FWIW, I was getting this error yesterday. I completely uninstalled rspec and > rspec-rails (including David's code from GitHub) and reinstalled, and it > "went away." Which version did you install after removing everything? > > ///ark > > On

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-07 Thread Mark Wilden
FWIW, I was getting this error yesterday. I completely uninstalled rspec and rspec-rails (including David's code from GitHub) and reinstalled, and it "went away." ///ark On Wed, Jan 7, 2009 at 1:49 AM, waseem ahmad wrote: > > > On Wed, Jan 7, 2009 at 2:55 PM, David Chelimsky wrote: > >> Seems l

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-07 Thread waseem ahmad
On Wed, Jan 7, 2009 at 2:55 PM, David Chelimsky wrote: > Seems like it's not loading up rspec-rails' Configuration object. In > order for that to happen implicitly, the specs need to be in any of > spec/models, spec/controllers, spec/views, spec/helpers. Is your file > in one of those? > > Yeah th

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-07 Thread David Chelimsky
On Wed, Jan 7, 2009 at 12:29 AM, waseem ahmad wrote: > Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures=' for # > (NoMethodError) > from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-06 Thread Mischa Fierer
this may help: http://themomorohoax.com/2008/12/17/rails-2-3-tests On Wed, Jan 7, 2009 at 12:29 AM, waseem ahmad wrote: > Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures=' for # > (NoMeth

[rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-06 Thread waseem ahmad
Hi, I get this error when I do $spec /spec/any_spec /home/waseem/app/spec/spec_helper.rb:14: undefined method `use_transactional_fixtures=' for # (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:184:in `configure' from /home/waseem/app/spec/spec_helper

Re: [rspec-users] Error when mocking a method in a class

2008-12-30 Thread Juanma Cervera
Josh Knowles wrote: >There are forks out on github which have specs and have > fixed the problem with validate_uniqueness_of. I have test a plugin with that fixed (from negonicrac) and it still has the same problem for me. I see that this plugin already has specs, and want to try them. But I don

Re: [rspec-users] Error when mocking a method in a class

2008-12-29 Thread Josh Knowles
On Mon, Dec 29, 2008 at 7:20 AM, David Chelimsky wrote: > I don't see any specs for the rspec-on-rails-matchers library on > github, and no activity in 9 months, so I'm guessing that it is > incomplete/no longer being maintained. > > Josh Knowles, if you're reading this, can you respond? I unfort

Re: [rspec-users] Error when mocking a method in a class

2008-12-29 Thread Juanma Cervera
David Chelimsky wrote: > I'm not really sure why this is stubbing find, or why the stub value > is true instead of a model. Actually, I don't even see how this would > specify validating uniqueness of the attribute without very specific > setup: > > first = Centro.create(:nombre => "example") > s

Re: [rspec-users] Error when mocking a method in a class

2008-12-29 Thread David Chelimsky
On Mon, Dec 29, 2008 at 5:04 AM, Juanma Cervera wrote: > I am fighting with an error using rspec-on-rails-matchers. > > I have a model called "Centro" based in this table > > create_table "centros", :force => true do |t| >t.string "nombre" >t.string "cif" >t.string "domicilio" >

Re: [rspec-users] Error when mocking a method in a class

2008-12-29 Thread Juanma Cervera
Well, it seems tha the error is indeed in the stubbing of the find method in the class of the model. def validate_uniqueness_of(attribute) return simple_matcher("model to validate the uniqueness of #{attribute}") do |model| model.class.stub!(:find).and_return(true) !model.valid? && mod

[rspec-users] Error when mocking a method in a class

2008-12-29 Thread Juanma Cervera
I am fighting with an error using rspec-on-rails-matchers. I have a model called "Centro" based in this table create_table "centros", :force => true do |t| t.string "nombre" t.string "cif" t.string "domicilio" t.string "codigo_postal" t.string "poblacion" t.str

Re: [rspec-users] Error loading Rails fixtures

2008-10-20 Thread David Chelimsky
On Sat, Oct 18, 2008 at 1:55 PM, Scott Burton <[EMAIL PROTECTED]> wrote: > Hi all; > > I'm getting a weird error from the rspec gem when using rake to load > fixtures in rails: > > % rake db:fixtures:load RAILS_ENV=test > /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/options.rb:229:in > `

[rspec-users] Error loading Rails fixtures

2008-10-18 Thread Scott Burton
Hi all; I'm getting a weird error from the rspec gem when using rake to load fixtures in rails: % rake db:fixtures:load RAILS_ENV=test /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/options.rb: 229:in `files_to_load': File or directory not found: db:fixtures:load (RuntimeError) f

Re: [rspec-users] error paths: a new scenerio or test in story runner?

2008-08-28 Thread aidy lewis
Hi David, On 28/08/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Thu, Aug 28, 2008 at 8:22 AM, aidy lewis <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I think the scenario based way of defining acceptance tests is akin to > > scenarios in use-cases. > > > > In use-cases we can have a ha

Re: [rspec-users] error paths: a new scenerio or test in story runner?

2008-08-28 Thread David Chelimsky
On Thu, Aug 28, 2008 at 8:22 AM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > I think the scenario based way of defining acceptance tests is akin to > scenarios in use-cases. > > In use-cases we can have a happy path with extends for error conditions etc. > > Should I create extra scenarios for

[rspec-users] error paths: a new scenerio or test in story runner?

2008-08-28 Thread aidy lewis
Hi, I think the scenario based way of defining acceptance tests is akin to scenarios in use-cases. In use-cases we can have a happy path with extends for error conditions etc. Should I create extra scenarios for my error conditions (making my tests less understandable) or should I create a new e

[rspec-users] Error on Autotest start

2008-07-03 Thread Don French
I have been using autotest/zentest 3.5.0 with my rails 2.0.2 and rspec. I upgraded my gems and got 3.9.3 and had a problem. I went back to 3.5.0 and it worked. I stayed there until moving to rails 2.1. I again updated my gems and got 3.10. This one had the same problem. This time I need to figure

Re: [rspec-users] Error when trying to get the install RSpec from Github

2008-05-23 Thread Doug Livesey
Ticket files -- #407. & cheers for the link, man -- I'll check that now. Doug. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Error when trying to get the install RSpec from Github

2008-05-23 Thread David Chelimsky
On May 23, 2008, at 5:17 AM, Doug Livesey wrote: Hi -- I've tried to get the latest RSpec by following the instructions at: http://github.com/dchelimsky/rspec/wikis/home I clone the repository just fine, but then, when I 'rake gem', I get the following errors: svn: '..' is not a working

[rspec-users] Error when trying to get the install RSpec from Github

2008-05-23 Thread Doug Livesey
Hi -- I've tried to get the latest RSpec by following the instructions at: http://github.com/dchelimsky/rspec/wikis/home I clone the repository just fine, but then, when I 'rake gem', I get the following errors: svn: '..' is not a working copy svn: Can't open file '../.svn/entries': No such f

Re: [rspec-users] Error testing rails controller

2008-04-26 Thread Jacob
It actually turned out to an invalid syntax in my controller, completely unrelated. Guess thats what I get for not checking my syntax before diving in. On Apr 7, 2:14 pm, "David Chelimsky" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 4, 2008 at 12:46 PM, Jacob <[EMAIL PROTECTED]> wrote: > > I am tryi

Re: [rspec-users] Error testing rails controller

2008-04-07 Thread David Chelimsky
On Fri, Apr 4, 2008 at 12:46 PM, Jacob <[EMAIL PROTECTED]> wrote: > I am trying to test my controllers with RSpec and from the examples I > have found it is as easy as this: > > describe SessionsController do > > it "should render login template" do > get 'new' > response.should render_

[rspec-users] Error testing rails controller

2008-04-07 Thread Jacob
I am trying to test my controllers with RSpec and from the examples I have found it is as easy as this: describe SessionsController do it "should render login template" do get 'new' response.should render_template(:login) end end However both get and post raise "wrong number of arg

Re: [rspec-users] Error on nil.build

2008-02-04 Thread Chris Olsen
Ooops there was a typo on the method causing the error. It should be: It is this test that fails it "should make the relation to the users" do @account.should_receive(:users) # removed the .and_return do_post end Is there a better way to test that the data is being loaded into the related

[rspec-users] Error on nil.build

2008-02-04 Thread Chris Olsen
I can't figure out why I am getting an error for one of the tests below: describe AccountsController, "POST" do before :each do @user = mock_model(User) @account = mock_model(Account, :id => 1, :valid => true, :save => true, :users => mock("users", :build => @user

[rspec-users] error on migration

2007-11-08 Thread Patrick Aljord
Hi all, I'm just getting started with rspec. I'm using trunk rspec with edge rails. I get an error on migration though, here it is: rake db:migrate RAILS_ENV="test" --trace (in /home/pat/railsapp) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake abo