Sha256: 57b51aaf897d5a206e40a20c3b1aa7ba2dad31e7d5daa6ca81ef553da8c8736a
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' require 'active_support/all' require 'curly/presenter' describe Curly::Presenter do class CircusPresenter < Curly::Presenter module MonkeyComponents def monkey end end include MonkeyComponents presents :midget, :clown attr_reader :midget, :clown end it "sets the presented parameters as instance variables" do context = double("context") presenter = CircusPresenter.new(context, midget: "Meek Harolson", clown: "Bubbles" ) presenter.midget.should == "Meek Harolson" presenter.clown.should == "Bubbles" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curly-templates-0.1.1 | spec/presenter_spec.rb |
curly-templates-0.1.0 | spec/presenter_spec.rb |