Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 657 Bytes
1 | require File.dirname(__FILE__) + '/spec_helper' |
2 | |
3 | # give a model to play with |
4 | class Reply < ActiveRecord::Base |
5 | attr_accessor :title |
6 | end |
7 | |
8 | describe ActionView::Helpers do |
9 | |
10 | # NOTE gives deprication warning in RSpec 1.1.4: |
11 | # Modules will no longer be automatically included in RSpec version 1.1.4. Called from ./spec/i18n_label_spec.rb:15 |
12 | it "label should make a call to human_attribute_name" do |
13 | Reply.should_receive(:human_attribute_name).with('title').and_return("translated title") |
14 | reply = mock_model(Reply) |
15 | fields_for(reply) do |f| |
16 | f.label(:title).should == "<label for=\"reply_title\">translated title</label>" |
17 | end |
18 | end |
19 | |
20 | end |