spec/project_creator_spec.rb in genit-0.9 vs spec/project_creator_spec.rb in genit-0.99
- old
+ new
@@ -27,9 +27,37 @@
it "should create a project file" do
File.exist?('spec/project-name/.genit').should == true
end
+ it "should create a config file" do
+ File.exist?('spec/project-name/.config').should == true
+ end
+
+ end
+
+ describe "Config file" do
+
+ before :each do
+ @config_file = YAML.load_file('spec/project-name/.config')
+ end
+
+ it "should have an address value of 'http://www.example.com'" do
+ @config_file[:address].should == 'http://www.example.com'
+ end
+
+ it "should have an rss value at true" do
+ @config_file[:rss].should be_true
+ end
+
+ it "should have an rss_title value of 'RSS TITLE'" do
+ @config_file[:rss_title].should == 'RSS TITLE'
+ end
+
+ it "should have an rss_description value of 'RSS DESCRIPTION'" do
+ @config_file[:rss_description].should == 'RSS DESCRIPTION'
+ end
+
end
describe "Folder structure" do
it "should create a news folder" do