[logaling-commit] logaling/logaling-command at ca7a173 [master] spec command: remove :all into before

Back to archive index

cosmo0920 null+****@clear*****
Wed Oct 8 19:49:04 JST 2014


cosmo0920	2014-10-08 19:49:04 +0900 (Wed, 08 Oct 2014)

  New Revision: ca7a17308f821dd29c3b82223b68efb8e8347331
  https://github.com/logaling/logaling-command/commit/ca7a17308f821dd29c3b82223b68efb8e8347331

  Merged 656b96a: Merge pull request #97 from cosmo0920/migrate-rspec-2-to-3

  Message:
    spec command: remove :all into before
    
    Because following error generates with rspec 3.1:
    
    ```log
    let declaration `logaling_config` accessed in a `before(:context)` hook
    at:
    ```

  Modified files:
    spec/logaling/command_spec.rb

  Modified: spec/logaling/command_spec.rb (+1 -1)
===================================================================
--- spec/logaling/command_spec.rb    2014-10-08 19:04:22 +0900 (e329389)
+++ spec/logaling/command_spec.rb    2014-10-08 19:49:04 +0900 (74b2b52)
@@ -87,7 +87,7 @@ describe Logaling::Command::Application do
     end
 
     context "when can not find .logaling" do
-      before(:all) do
+      before do
         FileUtils.rm_rf(logaling_config)
         base_options["glossary"] = nil
         @stdout = capture(:stdout) {command.register}
-------------- next part --------------
An HTML attachment was scrubbed...
Descargar 



More information about the logaling-commit mailing list
Back to archive index