[rspec-devel] Removing context/specify: what will "it do" to spec names?

Ian Dees undees at gmail.com
Fri Apr 13 20:23:06 EDT 2007


Quoth Aslak:

> Contexts are gone, and so are specify (ok, they are around a little bit longer for compatibility).

context / specify are going to be deleted entirely?  I thought they
were just going to be preserved as an alternative to describe / it.

I don't mind converting scripts, but what will this do to
autogenerated spec names?  For example:

context "Foo"
  specify do
    @foo.bar.should == :baz
  end
end

would become:

describe "Foo"
  it do
    @foo.bar.should == :baz
  end
end

"it do?"  Doesn't feel right to me.


More information about the rspec-devel mailing list