slacker 0.0.11 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +14 -34
- data/lib/slacker/version.rb +1 -1
- data/slacker.gemspec +2 -2
- metadata +4 -4
data/README.markdown
CHANGED
@@ -2,29 +2,29 @@
|
|
2
2
|
Behavior Driven Development for SQL Server
|
3
3
|
|
4
4
|
# Description
|
5
|
-
|
5
|
+
Slacker is a Ruby (RSpec-based) framework for developing automated tests for SQL Server programmable objects such as stored procedures and scalar/table functions.
|
6
6
|
|
7
7
|
# Installation
|
8
8
|
gem install slacker
|
9
9
|
|
10
|
-
|
10
|
+
### Requirements
|
11
11
|
|
12
|
-
|
12
|
+
* Ruby 1.9.2.
|
13
13
|
|
14
14
|
Runs on Windows and Linux.
|
15
15
|
|
16
|
-
Before installing
|
16
|
+
_Note_: Before installing on Windows, you need to install the [Ruby Windows Development Kit](https://github.com/oneclick/rubyinstaller/wiki/Development-Kit).
|
17
17
|
|
18
|
-
#
|
19
|
-
To create a new
|
18
|
+
# Quick Start
|
19
|
+
To create a new Slacker project, run the following command:
|
20
20
|
|
21
21
|
slacker_new my_project
|
22
22
|
|
23
|
-
This will create a directory `my_project
|
23
|
+
This will create a new project directory `my_project`.
|
24
24
|
|
25
|
-
Navigate to
|
25
|
+
Navigate to the new project directory and modify file `database.yml` to tell Slacker which database to connect to.
|
26
26
|
|
27
|
-
|
27
|
+
Run Slacker:
|
28
28
|
|
29
29
|
slacker
|
30
30
|
|
@@ -34,36 +34,16 @@ If all is good, you should see something like this:
|
|
34
34
|
.....
|
35
35
|
|
36
36
|
Finished in 0.05222 seconds
|
37
|
-
|
37
|
+
7 examples, 0 failures
|
38
38
|
|
39
39
|
Next, check out sample file `my_project\spec\sample_1.rb` to see the BDD specification you just executed.
|
40
40
|
|
41
|
-
Also take a look at the SQL files generated in folder `my_project\debug\passed_examples`. Those are the actual scripts
|
41
|
+
Also take a look at the SQL files generated in folder `my_project\debug\passed_examples`. Those are the actual SQL scripts Slacker generated and executed against your database.
|
42
42
|
|
43
|
-
|
43
|
+
# Resources
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
This ensures that:
|
48
|
-
|
49
|
-
1. When __Slacker__ finishes its run, it leaves the database in the same exact state as it found it.
|
50
|
-
|
51
|
-
2. All examples (see `sample_1.rb`) are executed in isolation from each other. No example can interfere with the results of any of the other examples.
|
52
|
-
|
53
|
-
# Documentation TODO
|
54
|
-
|
55
|
-
Document the following features:
|
56
|
-
|
57
|
-
* Slacker project
|
58
|
-
* Project structure
|
59
|
-
* Configuration
|
60
|
-
* Running Slacker
|
61
|
-
* DSL
|
62
|
-
* SQL Templates
|
63
|
-
* Data Fixtures
|
64
|
-
* Test Matrices
|
65
|
-
* Generated SQL
|
66
|
-
* Debugging
|
45
|
+
* [__Documentation__](https://github.com/vassilvk/slacker/wiki)
|
46
|
+
* [__Mailing List__](https://groups.google.com/forum/#!forum/ruby_slacker)
|
67
47
|
|
68
48
|
|
69
49
|
# LICENSE
|
data/lib/slacker/version.rb
CHANGED
data/slacker.gemspec
CHANGED
@@ -7,9 +7,9 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Slacker::VERSION
|
8
8
|
s.authors = ["Vassil Kovatchev"]
|
9
9
|
s.email = ["vassil.kovatchev@gmail.com"]
|
10
|
-
s.homepage = "https://github.com/vassilvk/slacker"
|
10
|
+
s.homepage = "https://github.com/vassilvk/slacker/wiki"
|
11
11
|
s.summary = %q{Behavior Driven Development for SQL Server}
|
12
|
-
s.description = %q{RSpec-based framework for developing automated tests for SQL Server
|
12
|
+
s.description = %q{RSpec-based framework for developing automated tests for SQL Server}
|
13
13
|
|
14
14
|
s.rubyforge_project = "slacker"
|
15
15
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: slacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0
|
5
|
+
version: 1.0.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Vassil Kovatchev
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-28 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: 2.5.0
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id003
|
48
|
-
description: RSpec-based framework for developing automated tests for SQL Server
|
48
|
+
description: RSpec-based framework for developing automated tests for SQL Server
|
49
49
|
email:
|
50
50
|
- vassil.kovatchev@gmail.com
|
51
51
|
executables:
|
@@ -114,7 +114,7 @@ files:
|
|
114
114
|
- spec/test_files/matcher/test_1.csv
|
115
115
|
- spec/slacker_spec.rb
|
116
116
|
- spec/application_spec.rb
|
117
|
-
homepage: https://github.com/vassilvk/slacker
|
117
|
+
homepage: https://github.com/vassilvk/slacker/wiki
|
118
118
|
licenses: []
|
119
119
|
|
120
120
|
post_install_message:
|