Permalink
Browse files

hopkit -> fluently; move +VERSION out of rakefile

  • Loading branch information...
1 parent cb0d50e commit 168f30df1a585b2729664adeba6ea081be540ddb @osteele committed Jan 22, 2008
Showing with 10 additions and 9 deletions.
  1. +3 −3 Rakefile
  2. +1 −0 VERSION
  3. +1 −1 examples/test-expect.lzx
  4. +1 −1 src/{hopkit.js → fluently.js}
  5. +1 −1 src/jsspec.js
  6. +1 −1 src/library.lzx
  7. +1 −1 src/lzmock.js
  8. +1 −1 src/lzspec.js
View
@@ -1,4 +1,4 @@
-RELEASE_VERSION = '0.9a4'
+RELEASE_VERSION = open('VERSION').read.chomp
ARCHIVE_NAME = "lztestkit-#{RELEASE_VERSION}.tgz"
IGNORE = Dir['**/#*#'] + Dir['**/.#*'] + Dir['build/**'] + Dir['working/**'] + %w{build working agenda.txt}
@@ -35,9 +35,9 @@ task 'build/index.html' => 'README' do |t|
end
AUTORUN_FILES = %w{autorun-browser.js autorun-lz.js autorun.css list-files.jsp}
-SHARED_FILES = AUTORUN_FILES + %w(hopkit.js jsspec.js lzmock.js lzspec.js lzunit-async.lzx lzunit-extensions.js lztimer.lzx lztimer-browser.js)
+SHARED_FILES = AUTORUN_FILES + %w(fluently.js jsspec.js lzmock.js lzspec.js lzunit-async.lzx lzunit-extensions.js lztimer.lzx lztimer-browser.js)
-# TODO: sync sequencing.js, hopkit.js with jsutils
+# TODO: sync sequencing.js, fluently.js with jsutils
def dirsync(source_dir, target_dir)
options = {}
View
@@ -0,0 +1 @@
+0.9a4
View
@@ -5,7 +5,7 @@
<TestSuite>
<TestCase>
<method name="testValues"><![CDATA[
- value(1).should.be(2);
+ value(1).should.be.equal(2);
]]></method>
</TestCase>
</TestSuite>
@@ -1,6 +1,6 @@
/* Copyright 2007-2008 by Oliver Steele. Released under the MIT License. */
-var HopKit = {
+var Fluently = {
// returns a new object initialized by `fn`. `fn` is passed a single
// argument `define` which defines chainable methods on the object.
make:function(fn) {
View
@@ -87,7 +87,7 @@ JSSpec.Runner = function(target, name) {
JSSpec.calling = function(target, name) {
var runner = JSSpec.Runner.apply(JSSpec.Runner, arguments),
options = runner._options,
- runner = HopKit.make(function(define) {
+ runner = Fluently.make(function(define) {
define('run', runner.run),
define('call', runner.call);
define('change', runner.change);
View
@@ -2,7 +2,7 @@
<library>
<include href="lzunit"/>
<script src="autorun-lz.js"/>
- <script src="hopkit.js"/>
+ <script src="fluently.js"/>
<script src="lzmock.js"/>
<script src="jsspec.js"/>
<script src="lzspec.js"/>
View
@@ -155,7 +155,7 @@ function MockObject(master) {
};
expectations.push(expectation);
- return HopKit.make(function(define) {
+ return Fluently.make(function(define) {
define('calls', calls),
define('returns', returns);
define.alias('calls.back', 'calls');
View
@@ -111,7 +111,7 @@ function ExpectValue(value, testCase, context) {
var options = {};
if (arguments.length < 3)
context = [];
- return HopKit.make(function(define) {
+ return Fluently.make(function(define) {
define.synonym('should');
define.synonym('be');
define.modifier.dictionary(options);

0 comments on commit 168f30d

Please sign in to comment.