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/. __

[rspec-users] Validations aren't being performed when running 'rspec spec'

2011-02-23 Thread Tom Milewski
Hello, When I run 'rspec spec/models' everything runs beautifully. When I run 'rspec spec/controllers' everything also runs beautifully. When I run 'rspec spec' the models seem to forget that the records need to pass the validations before being saved to the database. This is consistent across al

[rspec-users] RSpec doesn't see the DATA constant

2011-02-23 Thread Shamaoke
Hi. In Ruby there's the `DATA` constant which contains the lines following the `__END__` keyword in the source file. For some reason RSpec doesn't see it. Here's the example: ~~~ # data_spec.rb requre 'rspec' describe 'DATA' do it 'contains lines following the __END__ keyword' do DATA.re