Skip to content

Commit

Permalink
excluding slow tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Mar 4, 2011
1 parent 9118a80 commit cad9c10
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
neography (0.0.10)
neography (0.0.11)
httparty (~> 0.7.3)
json

Expand Down
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--color --format documentation"
end

task :default => :spec
10 changes: 5 additions & 5 deletions spec/integration/authorization_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')

describe Neography::Rest do
describe "basic authentication" do
describe Neography::Rest, :slow => true do
describe "basic authentication" do
describe "get_root" do
it "can get the root node" do
it "can get the root node"do
@neo = Neography::Rest.new({:server => '4c36b641.neo4j.atns.de', :port => 7474, :directory => '/9dc1fda5be8b5cde29621e21cae5adece3de0f37', :authentication => 'basic', :username => "abbe3c012", :password => "34d7b22eb"})
root_node = @neo.get_root
root_node.should have_key("reference_node")
Expand All @@ -18,7 +18,7 @@
end
end

describe "quick initalizer" do
describe "quick initializer" do
it "can get the root node" do
@neo = Neography::Rest.new("http://abbe3c012:34d7b22eb@4c36b641.neo4j.atns.de:7474/9dc1fda5be8b5cde29621e21cae5adece3de0f37")
root_node = @neo.get_root
Expand All @@ -27,7 +27,7 @@
end
end

describe "digest authentication" do
describe "digest authentication" do
describe "get_root" do
it "can get the root node" do
@neo = Neography::Rest.new({:server => '4c36b641.neo4j.atns.de', :port => 7474, :directory => '/9dc1fda5be8b5cde29621e21cae5adece3de0f37', :authentication => 'digest', :username => "abbe3c012", :password => "34d7b22eb"})
Expand Down
6 changes: 3 additions & 3 deletions spec/integration/rest_bulk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
new_nodes.size.should == 2
end

it "is faster than non-threaded?" do
it "is faster than non-threaded?" , :slow => true do
Benchmark.bm do |x|
x.report("create 500 nodes ") { @not_threaded = @neo.create_nodes(500) }
x.report("create 500 nodes threaded") { @threaded = @neo.create_nodes_threaded(500) }
Expand Down Expand Up @@ -61,7 +61,7 @@
new_nodes[1]["data"]["weight"].should == 215
end

it "is not super slow?" do
it "is not super slow?" , :slow => true do
Benchmark.bm do |x|
x.report( "create 1 node" ) { @neo.create_nodes( 1) }
x.report( "create 10 nodes") { @neo.create_nodes( 10) }
Expand Down Expand Up @@ -89,7 +89,7 @@
existing_nodes[1]["self"] == new_node2["self"]
end

it "is not super slow?" do
it "is not super slow?" , :slow => true do
one_node = @neo.create_nodes( 1)
ten_nodes = @neo.create_nodes( 10)
one_hundred_nodes = @neo.create_nodes(100)
Expand Down
3 changes: 1 addition & 2 deletions spec/integration/rest_experimental_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
end


describe "get_nodes" do
describe "get_nodes", :slow => true do
it "can get nodes that exists" do
existing_nodes = @neo.get_nodes
existing_nodes.should_not be_nil
puts existing_nodes.inspect
end

it "can get all nodes that exists the ugly way" do
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ def generate_text(length=8)
key = ''
length.times { |i| key << chars[rand(chars.length)] }
key
end

RSpec.configure do |c|
c.filter_run_excluding :slow => true
end

0 comments on commit cad9c10

Please sign in to comment.