funktional 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/funktional.gemspec +1 -1
  2. data/lib/funktional.rb +43 -2
  3. metadata +3 -3
data/funktional.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{funktional}
5
- s.version = "3.0.1"
5
+ s.version = "3.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Brent Greeff and Felix Clack"]
data/lib/funktional.rb CHANGED
@@ -1,5 +1,46 @@
1
1
  Rails.backtrace_cleaner.add_silencer { |line| line =~ /funktional/ }
2
2
 
3
- if Rails.env.eql? 'test' or $0 == 'irb'
4
- require File.join(File.dirname(__FILE__), "funktional", "load")
3
+ require 'test_help'
4
+
5
+ require 'funktional/test_instance_methods'
6
+ require 'funktional/test_class_methods'
7
+
8
+ require 'funktional/assertion'
9
+ require 'funktional/recursive_assertion'
10
+ require 'funktional/assigned_assertion'
11
+ require 'funktional/email_assertion'
12
+ require 'funktional/flashed_assertion'
13
+ require 'funktional/model_assertions'
14
+ require 'funktional/route_checker'
15
+ require 'funktional/attribute_test_helper'
16
+
17
+ require 'funktional/context'
18
+ require 'funktional/context/stack_recorder'
19
+ require 'funktional/context/should_block'
20
+ require 'funktional/context/should_not_block'
21
+ require 'funktional/context/delegating_should_block'
22
+ require 'funktional/context/should_create_block'
23
+ require 'funktional/context/should_not_create_block'
24
+ require 'funktional/context/should_not_delete_block'
25
+ require 'funktional/context/should_not_send_email_block'
26
+ require 'funktional/context/should_delete_block'
27
+ require 'funktional/context/element_should_block'
28
+ require 'funktional/context/count_should_block'
29
+ require 'funktional/context/flashed_should_block'
30
+ require 'funktional/context/assigned_should_block'
31
+ require 'funktional/context/collector'
32
+
33
+ require 'funktional/setup'
34
+
35
+ ActiveRecord::Base.send(:include, Funktional::ModelAssertions)
36
+
37
+ ActiveSupport::TestCase.send(:include, Funktional::TestInstanceMethods)
38
+ ActiveSupport::TestCase.send :extend, Funktional::TestClassMethods
39
+ ActiveSupport::TestCase.send(:include, Funktional::AttributeTestHelper)
40
+
41
+ ActiveSupport::TestCase.send(:include, Funktional::Setup)
42
+
43
+ if RAILS_ENV.eql? 'test' or $0 == 'irb'
44
+ require 'funktional/random_characters'
45
+ Integer.send :include, Funktional::RandomCharacters
5
46
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funktional
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 1
10
- version: 3.0.1
9
+ - 2
10
+ version: 3.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brent Greeff and Felix Clack