Skip to content

Commit

Permalink
Add very simple spec for constants inside singleton classes (fixes #340)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Aug 2, 2013
1 parent b9d8517 commit 20d3593
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/opal/language/singleton_class_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'spec_helper'

class SingletonClassConstantsSpec
class << self
$singleton_class_constant_spec = String
end
end

describe "Singleton Classes" do
it "looks up constants in body" do
$singleton_class_constant_spec.should == String
end
end

0 comments on commit 20d3593

Please sign in to comment.