null+****@clear*****
null+****@clear*****
Thu Jun 14 22:48:30 JST 2012
SHIMADA Koji 2012-06-14 22:48:30 +0900 (Thu, 14 Jun 2012) New Revision: 83c86ae7c6ff6dbb664e9c9ad0551578d5fd9077 Log: Remove unnecessary let Modified files: spec/logaling/command_spec.rb spec/logaling/glossary_spec.rb spec/logaling/repository_spec.rb Modified: spec/logaling/command_spec.rb (+2 -2) =================================================================== --- spec/logaling/command_spec.rb 2012-06-14 22:45:05 +0900 (a15daa6) +++ spec/logaling/command_spec.rb 2012-06-14 22:48:30 +0900 (7f6afad) @@ -22,10 +22,10 @@ describe Logaling::Command::Application do let(:logaling_config) { File.join(File.dirname(__FILE__), "..", "tmp", ".logaling") } let(:base_options) { {"glossary"=>"spec", "source-language"=>"en", "target-language"=>"ja", "logaling-config" => logaling_config} } let(:command) { Logaling::Command::Application.new([], base_options) } - let(:glossary_source) { Logaling::GlossarySource.new('spec', 'en', 'ja', logaling_home) } - let(:glossary_source_path) { glossary_source.source_path } let(:target_project_path) { File.join(logaling_home, "projects", "spec") } let(:repository) { Logaling::Repository.new(logaling_home) } + let(:glossary) { repository.find_project('spec').find_glossary('en', 'ja') } + let(:glossary_source_path) { glossary.glossary_source.source_path } before do FileUtils.rm_rf(File.join(logaling_home, 'projects', 'spec')) Modified: spec/logaling/glossary_spec.rb (+2 -4) =================================================================== --- spec/logaling/glossary_spec.rb 2012-06-14 22:45:05 +0900 (5cd07b5) +++ spec/logaling/glossary_spec.rb 2012-06-14 22:48:30 +0900 (5566383) @@ -20,12 +20,10 @@ require "fileutils" module Logaling describe Glossary do - let(:project) { "spec" } let(:logaling_home) { @logaling_home } let(:repository) { Logaling::Repository.new(logaling_home) } - let(:glossary) { repository.find_project(project).find_glossary('en', 'ja') } - let(:glossary_source) { glossary.glossary_source } - let(:glossary_source_path) { glossary_source.source_path } + let(:glossary) { repository.find_project('spec').find_glossary('en', 'ja') } + let(:glossary_source_path) { glossary.glossary_source.source_path } before do FileUtils.remove_entry_secure(File.join(logaling_home, 'projects', 'spec'), true) Modified: spec/logaling/repository_spec.rb (+2 -6) =================================================================== --- spec/logaling/repository_spec.rb 2012-06-14 22:45:05 +0900 (776f83e) +++ spec/logaling/repository_spec.rb 2012-06-14 22:48:30 +0900 (4a88e37) @@ -20,13 +20,10 @@ require "fileutils" module Logaling describe Repository do - let(:project) { "spec" } let(:logaling_home) { @logaling_home } - let(:db_home) { File.join(logaling_home, "db") } let(:repository) { Logaling::Repository.new(logaling_home) } - let(:glossary) { repository.find_project(project).find_glossary('en', 'ja') } - let(:glossary_source) { glossary.glossary_source } - let(:glossary_source_path) { glossary_source.source_path } + let(:glossary) { repository.find_project('spec').find_glossary('en', 'ja') } + let(:glossary_source_path) { glossary.glossary_source.source_path } before do FileUtils.remove_entry_secure(File.join(logaling_home, 'projects', 'spec'), true) @@ -112,7 +109,6 @@ module Logaling end describe '#index' do - let(:logaling_db) { Logaling::GlossaryDB.new } let(:tsv_path) { File.join(File.dirname(glossary_source_path), "spec.en.ja.tsv") } let(:csv_path) { File.join(File.dirname(glossary_source_path), "spec.en.ja.csv") }