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