slacker 0.0.6 → 0.0.7
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/Gemfile.lock +1 -1
- data/README.markdown +27 -7
- data/lib/slacker/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/README.markdown
CHANGED
@@ -4,20 +4,40 @@ Behavior Driven Development for SQL Server
|
|
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
|
-
The following gems are installed automatically:
|
11
|
-
|
12
|
-
* rspec 2.5.0
|
13
|
-
* ruby-odbc 0.99994
|
14
|
-
|
15
10
|
## Requirements
|
16
11
|
|
17
|
-
__Slacker__ requires Ruby 1.9.2
|
12
|
+
__Slacker__ requires Ruby 1.9.2.
|
13
|
+
|
14
|
+
Runs on Windows and Linux.
|
18
15
|
|
19
16
|
Before installing __Slacker__ on Windows, you need to install the [Ruby Windows Development Kit](https://github.com/oneclick/rubyinstaller/wiki/Development-Kit) (__ruby-odbc__ contains native extensions).
|
20
17
|
|
18
|
+
# Usage
|
19
|
+
To create a __Slacker__ project, run the following command:
|
20
|
+
|
21
|
+
slacker_new my_project
|
22
|
+
|
23
|
+
This will create a directory `my_project` in your current directory and will populate it with the files of a __Slacker__ project scaffold.
|
24
|
+
|
25
|
+
Navigate to your new project directory and modify file `database.yml` to tell __Slacker__ which database it should connect to.
|
26
|
+
|
27
|
+
Then while in your project directory run __Slacker__:
|
28
|
+
|
29
|
+
slacker
|
30
|
+
|
31
|
+
If all is good, you should see something like this:
|
32
|
+
|
33
|
+
my_database (my_server)
|
34
|
+
.....
|
35
|
+
|
36
|
+
Finished in 0.05222 seconds
|
37
|
+
5 examples, 0 failures
|
38
|
+
|
39
|
+
Next, check out sample file `my_project\spec\sample_1.rb` to see the BDD specification you just executed.
|
40
|
+
|
21
41
|
# Documentation TODO
|
22
42
|
|
23
43
|
Document the following features:
|
data/lib/slacker/version.rb
CHANGED