Skip to content

Commit

Permalink
Updated the specs for RDF::Query::Variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Aug 26, 2010
1 parent 64640e6 commit f293e48
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/query_variable_spec.rb
@@ -1,15 +1,11 @@
require File.join(File.dirname(__FILE__), 'spec_helper')

describe RDF::Query::Variable do
context "when created" do
context "when created with a name" do
before :each do
@var = RDF::Query::Variable.new(:x)
end

it "should require a name" do
lambda { var = RDF::Query::Variable.new }.should raise_error(ArgumentError)
end

it "should have a name" do
@var.named?.should be_true
@var.name.should == :x
Expand Down

0 comments on commit f293e48

Please sign in to comment.