Sha256: e01f63771d0915331c81418f6c96094f94ba1841e3ddfa7cbc3cc5f2ef2f46df

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require 'rspec_ext'
require 'rspec_ext/xhtml'

require 'rad'
require 'rad/spec'

rad.common_interface

shared_examples_for 'commons demo' do
  set_controller Rad::Face::Demo::Commons
    
  [:aspects, :basic, :forms, :style, :items].each do |action|    
    it action do
      wcall action, theme: @theme
    end
  end
end

shared_examples_for 'site demo' do
  set_controller Rad::Face::Demo::Sites
  
  [:home, :style, :blog, :post].each do |action|
    it action do
      wcall action.to_sym, theme: @theme, layout_template: @layouts[action]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rad_common_interface-0.0.14 lib/common_interface/spec.rb
rad_common_interface-0.0.13 lib/common_interface/spec.rb
rad_common_interface-0.0.12 lib/common_interface/spec.rb
rad_common_interface-0.0.11 lib/common_interface/spec.rb