Another quick poll
How many folks care about these features:
describe Post do
subject_attributes { valid_attributes }
def valid_attributes
{ :name => "my post" }
end
it "should give me a post with valid attributes" do
# ...
end
describe :name => "blah" do
it "should give me a shorthand for :name => blah" do
# ...
end
end
For some reason, describe is not being properly overridden. But more
importantly, the hash syntax conflicts with the built-in metadata
functionality in Rspec 2
I never knew this functionality existed in Remarkable 3.3, and
frankly, I don't really use it.
subject_attribute {} is neat but you can just as easily use subject
{ Post.new(:attributes ... ) }
If there are enough people that care about this, I may give it another
crack. At this point though, I'm culling it from the feature set and
push for a bundle-able-prerelease.
Ho-Sheng Hsiao
http://hosheng.blogspot.com
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.