From 27f22774b112c613d88edae351ac1fe15ee59441 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 14 Sep 2013 20:20:59 +0200 Subject: Move specs location one level down --- spec/Gemfile | 4 ---- spec/Gemfile.lock | 20 -------------------- spec/loading_spec.rb | 14 ++++++++++++++ spec/spec/loading_spec.rb | 14 -------------- spec/spec/spec_helper.rb | 23 ----------------------- spec/spec_helper.rb | 23 +++++++++++++++++++++++ 6 files changed, 37 insertions(+), 61 deletions(-) delete mode 100644 spec/Gemfile delete mode 100644 spec/Gemfile.lock create mode 100644 spec/loading_spec.rb delete mode 100644 spec/spec/loading_spec.rb delete mode 100755 spec/spec/spec_helper.rb create mode 100755 spec/spec_helper.rb (limited to 'spec') diff --git a/spec/Gemfile b/spec/Gemfile deleted file mode 100644 index 4a544814..00000000 --- a/spec/Gemfile +++ /dev/null @@ -1,4 +0,0 @@ -source 'https://rubygems.org' - -gem 'vimrunner' -gem 'rspec' diff --git a/spec/Gemfile.lock b/spec/Gemfile.lock deleted file mode 100644 index f88e86d1..00000000 --- a/spec/Gemfile.lock +++ /dev/null @@ -1,20 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - diff-lcs (1.1.3) - rspec (2.12.0) - rspec-core (~> 2.12.0) - rspec-expectations (~> 2.12.0) - rspec-mocks (~> 2.12.0) - rspec-core (2.12.2) - rspec-expectations (2.12.1) - diff-lcs (~> 1.1.3) - rspec-mocks (2.12.0) - vimrunner (0.3.0) - -PLATFORMS - ruby - -DEPENDENCIES - rspec - vimrunner diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb new file mode 100644 index 00000000..459f0720 --- /dev/null +++ b/spec/loading_spec.rb @@ -0,0 +1,14 @@ +require 'spec_helper' + +describe "My Vim plugin" do + languages = Dir["#{PLUGIN_PATH}/syntax/*.vim"].map { |f| f.split('/').last.gsub('.vim', '') } + + languages.each do |lang| + it "should parse .#{lang} file" do + write_file "test.#{lang}", "" + vim.edit "test.#{lang}" + vim.insert "sample" + vim.write + end + end +end diff --git a/spec/spec/loading_spec.rb b/spec/spec/loading_spec.rb deleted file mode 100644 index 459f0720..00000000 --- a/spec/spec/loading_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "My Vim plugin" do - languages = Dir["#{PLUGIN_PATH}/syntax/*.vim"].map { |f| f.split('/').last.gsub('.vim', '') } - - languages.each do |lang| - it "should parse .#{lang} file" do - write_file "test.#{lang}", "" - vim.edit "test.#{lang}" - vim.insert "sample" - vim.write - end - end -end diff --git a/spec/spec/spec_helper.rb b/spec/spec/spec_helper.rb deleted file mode 100755 index b9205d27..00000000 --- a/spec/spec/spec_helper.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'vimrunner' -require 'vimrunner/rspec' - -PLUGIN_PATH = File.expand_path('../../..', __FILE__) -puts PLUGIN_PATH - -Vimrunner::RSpec.configure do |config| - # Use a single Vim instance for the test suite. Set to false to use an - # instance per test (slower, but can be easier to manage). - config.reuse_server = true - - # Decide how to start a Vim instance. In this block, an instance should be - # spawned and set up with anything project-specific. - config.start_vim do - vim = Vimrunner.start - - # Setup your plugin in the Vim instance - vim.add_plugin(PLUGIN_PATH) - - # The returned value is the Client available in the tests. - vim - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100755 index 00000000..b2cd9a24 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,23 @@ +require 'vimrunner' +require 'vimrunner/rspec' + +PLUGIN_PATH = File.expand_path('../..', __FILE__) +puts PLUGIN_PATH + +Vimrunner::RSpec.configure do |config| + # Use a single Vim instance for the test suite. Set to false to use an + # instance per test (slower, but can be easier to manage). + config.reuse_server = true + + # Decide how to start a Vim instance. In this block, an instance should be + # spawned and set up with anything project-specific. + config.start_vim do + vim = Vimrunner.start + + # Setup your plugin in the Vim instance + vim.add_plugin(PLUGIN_PATH) + + # The returned value is the Client available in the tests. + vim + end +end -- cgit v1.2.3