Sha256: ef84365965bdf494df751c28b918dda952327145a25d7ff916eb69278c36dc8b
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
require File.expand_path('../../../helper', __FILE__) require File.join(Zen::FIXTURES, 'helper', 'controller') describe('Ramaze::Helper::Controller') do behaves_like :capybara it('Set the title of a controller method') do visit('/admin/spec-controller-helper') page.body.include?('index method').should == true page.find('title').text.should == lang('categories.titles.index') end it('Protect a controller method against CSRF attacks') do visit('/admin/spec-controller-helper/csrf') page.body.include?('csrf method').should == false page.status_code.should == 403 page.body.include?(lang('zen_general.errors.csrf')).should == true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zen-0.3 | spec/zen/helper/controller.rb |
zen-0.3b1 | spec/zen/helper/controller.rb |
zen-0.3b | spec/zen/helper/controller.rb |