search for: fail_with

Displaying 8 results from an estimated 8 matches for "fail_with".

Did you mean: fail_nth
2015 Mar 09
5
Notes on building a gcc toolchain for Rtools (but not multilib)
...64+gcc.sh script: -------------------------------------------------- diff --git a/mingw-w64+gcc.sh b/mingw-w64+gcc.sh index 2402ffc..fd44e76 100644 --- a/mingw-w64+gcc.sh +++ b/mingw-w64+gcc.sh @@ -8,6 +8,7 @@ source 0_append_distro_path.sh 7z x '-oC:\Temp\gcc' gmp-6.0.0a.tar > NUL || fail_with gmp-6.0.0a.tar - EPIC FAIL 7z x '-oC:\Temp\gcc' mpfr-3.1.2.tar > NUL || fail_with mpfr-3.1.2.tar - EPIC FAIL 7z x '-oC:\Temp\gcc' mpc-1.0.2.tar > NUL || fail_with mpc-1.0.2.tar - EPIC FAIL +7z x '-oC:\Temp\gcc' pthreads-w32-2-9-1-release.tar > NUL || fail_with pth...
2015 Mar 09
0
Notes on building a gcc toolchain for Rtools (but not multilib)
...---------------------------------- > > diff --git a/mingw-w64+gcc.sh b/mingw-w64+gcc.sh > index 2402ffc..fd44e76 100644 > --- a/mingw-w64+gcc.sh > +++ b/mingw-w64+gcc.sh > @@ -8,6 +8,7 @@ source 0_append_distro_path.sh > 7z x '-oC:\Temp\gcc' gmp-6.0.0a.tar > NUL || fail_with gmp-6.0.0a.tar > - EPIC FAIL > 7z x '-oC:\Temp\gcc' mpfr-3.1.2.tar > NUL || fail_with mpfr-3.1.2.tar > - EPIC FAIL > 7z x '-oC:\Temp\gcc' mpc-1.0.2.tar > NUL || fail_with mpc-1.0.2.tar - EPIC FAIL > +7z x '-oC:\Temp\gcc' pthreads-w32-2-9-1-release.tar...
2007 Feb 15
1
Specs for RJS HTML output NOT containing an element
...is this addition to my spec_helper.rb: module Spec module Rails class AssertSelectWrapper def should_not_have(*opts) begin should_have(*opts) rescue Spec::Expectations::ExpectationNotMetError else fail_with("Expected no matching elements but at least one was detected.") end end end end end module ActionController class TestResponse def should_not_have(*opts) __assert_select_wrapper.should_not_have(*opts)...
2010 Jul 08
3
Testing equality
Hello How can I test equality with two objects when they include some attribute that is BigDecimal? if I make something like this: it "should ...whatever" do obj = Factory.create(:my_object) ... MyObject.first.should == obj end. FAILS This fails because the object expected is different from the object gotten, and the only difference are the BigDecimal attributes, that are
2007 Oct 17
16
rspec causing validates_presence_of to validate twice?
I had posted this on the regular Rails list, but upon trying this in script/console, it seems like the behavior only exists when running rspec. I''m getting some weird behavior in one of my models. I have a model defined something like this class User < ActiveRecord::Base attr_accessor :password validates_presence_of :password end If I validate the model without specifying a
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here: http://railsforum.com/viewtopic.php?pid=25439#p25439 Don''t think it would be required to completely re-type it here :) Thanks! -- -Daniel Fischer http://danielfischer.com - Geek Blog http://abigfisch.com - Portfolio http://writersbeat.com - Writing Community
2007 Oct 16
6
RailsStory runner - empty response
...1 scenarios: 0 succeeded, 1 failed, 0 pending FAILURES: 1) View Home Page (Publisher with no videos) FAILED Spec::Expectations::ExpectationNotMetError: expected /Welcome/, got "" /Users/alvin/workspace/rspec-stories/config/../vendor/plugins/rspec/lib/spec/expectations.rb:52:in `fail_with'' /Users/alvin/workspace/rspec-stories/config/../vendor/plugins/rspec/lib/spec/expectations/handler.rb:21:in `handle_matcher'' /Users/alvin/workspace/rspec-stories/config/../vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb:34:in `should'' /Users/alvin/worksp...
2007 Dec 17
14
Change in isolation behaviour 1.08 - 1.10 ?
Hi, I just moved from 1.08 to 1.10 and now have one example failing, which, under 1.08, passed. Is the due to a change in behaviour? Here''s my spec (removed some passing examples) require File.dirname(__FILE__) + ''/../spec_helper'' describe "A user" do before(:each) do @user = User.new @valid_user = User.new( :email =>