assert-activerecord 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/LICENSE +22 -0
- data/README.md +31 -0
- data/assert-activerecord.gemspec +25 -0
- data/lib/assert-activerecord.rb +4 -0
- data/lib/assert-activerecord/version.rb +3 -0
- data/log/.gitkeep +0 -0
- data/test/helper.rb +10 -0
- data/test/support/factory.rb +6 -0
- data/test/system/.gitkeep +0 -0
- data/test/unit/.gitkeep +0 -0
- data/tmp/.gitkeep +0 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f8f0ff654619cf36525946f35861f61c3471be4f75926701ed5b284992d646d4
|
4
|
+
data.tar.gz: bf800652a530c6357b1c9a6e8d1c3746ecd5ecd5f9ad5114f5cae0a9f3a99a97
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 720c420ab9be79766e9a4e80af253a322478c7572d8574648110b085a308502411a7176b1de4e73398cf88ed6749436b722d9de9cba915a8892e81cfe37d3519
|
7
|
+
data.tar.gz: dcd5a3295ecbc514a5757fbed6a54e7433c5653227d689268009f752667862b55a8b176af737251864ff2d1e8dac1669dce6714ece3c07ec587cd452c2d930a3
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2018-Present Kelly Redding and Collin Redding
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# AssertActiveRecord
|
2
|
+
|
3
|
+
Helpers for testing ActiveRecords in Assert test suites. See https://github.com/redding/assert for reference.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
In general, you should never bundle or require this gem directly. This gem only houses the framework for testing ActiveRecord using Assert.
|
8
|
+
|
9
|
+
Instead you should bundle/require one of the AssertActiveRecord adapter gems. These adapter gems contain all the specific logic for each major version of ActiveRecord. These gems, in turn, will require in this gem and use its common framework.
|
10
|
+
|
11
|
+
See the usage instructions for the adapter gem you need:
|
12
|
+
|
13
|
+
* Rails 4 (ActiveRecord 4): https://github.com/redding/assert-activerecord4#usage
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
See the installation instructions for the adapter gem you need:
|
18
|
+
|
19
|
+
* Rails 4 (ActiveRecord 4): https://github.com/redding/assert-activerecord4#installation
|
20
|
+
|
21
|
+
If, for some reason, you want to just install this gem directly:
|
22
|
+
|
23
|
+
$ gem install assert-activerecord
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am "Added some feature"`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create new Pull Request
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "assert-activerecord/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "assert-activerecord"
|
8
|
+
gem.version = AssertActiveRecord::VERSION
|
9
|
+
gem.authors = ["Kelly Redding", "Collin Redding"]
|
10
|
+
gem.email = ["kelly@kellyredding.com", "collin.redding@me.com"]
|
11
|
+
gem.summary = "Helpers for testing ActiveRecords in Assert test suites."
|
12
|
+
gem.description = "Helpers for testing ActiveRecords in Assert test suites."
|
13
|
+
gem.homepage = "https://github.com/redding/assert"
|
14
|
+
gem.license = "MIT"
|
15
|
+
|
16
|
+
gem.files = `git ls-files | grep "^[^.]"`.split($/)
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
+
gem.require_paths = ["lib"]
|
20
|
+
|
21
|
+
gem.required_ruby_version = '> 1.8'
|
22
|
+
|
23
|
+
gem.add_development_dependency("assert", ["~> 2.17.0"])
|
24
|
+
|
25
|
+
end
|
data/log/.gitkeep
ADDED
File without changes
|
data/test/helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# this file is automatically required when you run `assert`
|
2
|
+
# put any test helpers here
|
3
|
+
|
4
|
+
# add the root dir to the load path
|
5
|
+
$LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
|
6
|
+
|
7
|
+
# require pry for debugging (`binding.pry`)
|
8
|
+
require "pry"
|
9
|
+
|
10
|
+
require "test/support/factory"
|
File without changes
|
data/test/unit/.gitkeep
ADDED
File without changes
|
data/tmp/.gitkeep
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: assert-activerecord
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kelly Redding
|
8
|
+
- Collin Redding
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2018-10-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: assert
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 2.17.0
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.17.0
|
28
|
+
description: Helpers for testing ActiveRecords in Assert test suites.
|
29
|
+
email:
|
30
|
+
- kelly@kellyredding.com
|
31
|
+
- collin.redding@me.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- Gemfile
|
37
|
+
- LICENSE
|
38
|
+
- README.md
|
39
|
+
- assert-activerecord.gemspec
|
40
|
+
- lib/assert-activerecord.rb
|
41
|
+
- lib/assert-activerecord/version.rb
|
42
|
+
- log/.gitkeep
|
43
|
+
- test/helper.rb
|
44
|
+
- test/support/factory.rb
|
45
|
+
- test/system/.gitkeep
|
46
|
+
- test/unit/.gitkeep
|
47
|
+
- tmp/.gitkeep
|
48
|
+
homepage: https://github.com/redding/assert
|
49
|
+
licenses:
|
50
|
+
- MIT
|
51
|
+
metadata: {}
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.8'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubyforge_project:
|
68
|
+
rubygems_version: 2.7.7
|
69
|
+
signing_key:
|
70
|
+
specification_version: 4
|
71
|
+
summary: Helpers for testing ActiveRecords in Assert test suites.
|
72
|
+
test_files:
|
73
|
+
- test/helper.rb
|
74
|
+
- test/support/factory.rb
|
75
|
+
- test/system/.gitkeep
|
76
|
+
- test/unit/.gitkeep
|