[rspec-users] Pending expectations

David Chelimsky dchelimsky at gmail.com
Wed Apr 8 10:36:01 EDT 2009


On Wed, Apr 8, 2009 at 6:11 AM, Sven <svoop at delirium.ch> wrote:
> I've noticed that pending expectations fail if the before(:each) code is not
> implemented yet. In other words, taking the example code from Peepcode's rspec
> series:
>
> describe Weather, ".fetch for zipcode" do
>
>  before(:each) do
>    @weather = Weather.fetch_for_zipcode(98117)
>  end
>
>  it "should populate zipcode"
>
>  it "should populate temperature units"
>
>  it "should populate recorded at"
>
> end
>
> With rspec-1.2.0 this will result in 3 failing tests (as fetch_for_zipcode is
> not yet implemented), whereas in the original screencast it caused the three
> expectations to be reported as pending - which makes more sense to me.
>
> How come?

Please file a bug report at http://rspec.lighthouseapp.com and include
the backtrace you're getting.

Thanks,
David

> -sven
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list