Sha256: e9f6f9cc3abb24fbe7e45280bda9e1bbe6c59fcf4ded895918ed1227bac35b6a
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
require 'minitest/autorun' require 'minitest/pride' require 'nokogiri' # minitest and turn #require 'minitest_helper' ENV["RAILS_ENV"] = "test" require "active_support" require "action_controller" require "rails/railtie" require "i18n" $:.unshift File.expand_path('../../lib', __FILE__) require 'calendrier' Calendrier::Routes = ActionDispatch::Routing::RouteSet.new Calendrier::Routes.draw do match ':controller(/:action(/:id))', :via => :get end ActionController::Base.send :include, Calendrier::Routes.url_helpers class FakeEvent attr_accessor :title def initialize @title = "essai" end def category "Category ?" end def self.model_name self.class.name end end class FakeDailyEvent < FakeEvent attr_accessor :year, :month, :day def initialize(year, month, day) @year, @month, @day = year, month, day end end class FakeLongEvent < FakeEvent attr_accessor :begin_time, :end_time def initialize(begin_time, end_time) @begin_time, @end_time = begin_time, end_time end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
calendrier-0.9.5 | test/test_helper.rb |
calendrier-0.9.4 | test/test_helper.rb |
calendrier-0.9.3 | test/test_helper.rb |