Permalink
Browse files

THIS IS SPARTA.

  • Loading branch information...
1 parent 53394d9 commit 36735163c61a5bb6c0d524c19b3fe7595abc9a22 @josevalim committed Aug 14, 2011
@@ -1,7 +1,7 @@
-require "thrasos/version"
+require "sparta/version"
require "rkelly"
-module Thrasos
+module Sparta
class Scope
attr_reader :variables, :generator
alias g generator
File renamed without changes.
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/thrasos/version', __FILE__)
+require File.expand_path('../lib/sparta/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["José Valim", "Yehuda Katz"]
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- gem.name = "thrasos"
+ gem.name = "sparta"
gem.require_paths = ["lib"]
gem.version = Thrasos::VERSION
@@ -1,10 +1,6 @@
require "spec_helper"
describe "Arithmetic" do
- def e(string)
- Thrasos.eval(string)
- end
-
it "can add integers" do
e("1+1").should == 2
e("1+1+1").should == 3
@@ -1,10 +1,6 @@
require "spec_helper"
describe "Assignment" do
- def e(string)
- Thrasos.eval(string)
- end
-
it "can handle simple assignment" do
e("x = 3; x").should == 3
end
@@ -1,10 +1,6 @@
require "spec_helper"
describe "Function" do
- def e(string)
- Thrasos.eval(string)
- end
-
it "can define functions" do
e("(function (){ return 3; })").call.should == 3
end
View
@@ -1,3 +1,9 @@
require "bundler/setup"
-require "thrasos"
+require "sparta"
require "pp"
+
+RSpec.configure do
+ def e(string)
+ Sparta.eval(string)
+ end
+end

0 comments on commit 3673516

Please sign in to comment.