Sha256: 873f8261aa9b5826227f2ba5bcd42b7bea51de2f9581b9e42e4915ba472c9e37
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
require "spec/spec_helper" require "action_controller" describe Irwi::Extensions::Controllers::WikiPages do class WikiPage; end class WikiPagesController < ActionController::Base include Irwi::Extensions::Controllers::WikiPages end it { should_not be_nil } before(:all) do @cls = WikiPagesController end context "class" do it { @cls.should respond_to :set_page_class } it { @cls.should respond_to :page_class } specify "should have WikiPage as default page_class" do @cls.page_class.should == WikiPage end end context "instance" do before(:each) do @obj = @cls.new end it { @obj.should respond_to :page_class } specify "should have WikiPage as default page_class" do @obj.send(:page_class).should == WikiPage end it { @obj.should respond_to :render_template } it { @obj.should respond_to :setup_current_user } it { @obj.should respond_to :setup_page } it { @obj.should respond_to :show } it { @obj.should respond_to :edit } it { @obj.should respond_to :update } it { @obj.should respond_to :history } it { @obj.should respond_to :compare } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
irwi-0.1.0 | spec/extensions/controllers/wiki_pages_spec.rb |
irwi-0.0.0 | spec/extensions/controllers/wiki_pages_spec.rb |