incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [4/5] CB-652 Update spec/phonegap to spec/cordova
Date Mon, 07 May 2012 22:25:12 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/yaml_front_matter_spec.rb
----------------------------------------------------------------------
diff --git a/spec/phonegap/yaml_front_matter_spec.rb b/spec/phonegap/yaml_front_matter_spec.rb
deleted file mode 100644
index 74e969e..0000000
--- a/spec/phonegap/yaml_front_matter_spec.rb
+++ /dev/null
@@ -1,56 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#  http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-$:.unshift File.join(File.dirname(__FILE__), '..')
-require 'spec_helpers'
-require 'yaml_front_matter'
-
-describe YamlFrontMatter do
-  before :each do
-    directory = Helper::create_tmp_directory_assets(__FILE__)
-    @file = {
-      :yaml    => File.join(directory, 'has_yaml.md'),
-      :no_yaml => File.join(directory, 'no_yaml.md')
-    }
-    @yaml_front_matter = YamlFrontMatter.new
-  end
-    
-  it 'should skip files with no YAML Front Matter' do
-    expected_data = File.read(@file[:no_yaml])
-    @yaml_front_matter.run(@file[:no_yaml]).should == {}
-    actual_data = File.read(@file[:no_yaml])
-    
-    actual_data.should == expected_data
-  end
-  
-  it 'should parse files with YAML Front Matter' do
-    @yaml_front_matter.run(@file[:yaml]).should == {
-      'platforms' => 'Android, BlackBerry, iOS',
-      'type'      => 'Function'
-    }
-  end
-  
-  it 'should strip YAML Front Matter from the file' do
-    File.read(@file[:yaml]).should match(/\A\W+/)
-    @yaml_front_matter.run(@file[:yaml])
-    File.read(@file[:yaml]).should_not match(/\A\W+/) # No whitespace
-  end
-  
-  after :all do
-    Helper::remove_tmp_directory
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/yaml_front_matter_spec/has_yaml.md
----------------------------------------------------------------------
diff --git a/spec/phonegap/yaml_front_matter_spec/has_yaml.md b/spec/phonegap/yaml_front_matter_spec/has_yaml.md
deleted file mode 100644
index 6f3e750..0000000
--- a/spec/phonegap/yaml_front_matter_spec/has_yaml.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-platforms: Android, BlackBerry, iOS
-type: Function
----
-
-
-
-
-
-PhoneGap
-========
-
-It's a fun place to be
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e0d6b692/spec/phonegap/yaml_front_matter_spec/no_yaml.md
----------------------------------------------------------------------
diff --git a/spec/phonegap/yaml_front_matter_spec/no_yaml.md b/spec/phonegap/yaml_front_matter_spec/no_yaml.md
deleted file mode 100644
index d8b5837..0000000
--- a/spec/phonegap/yaml_front_matter_spec/no_yaml.md
+++ /dev/null
@@ -1,4 +0,0 @@
-PhoneGap II
-===========
-
-The return of the system admin.
\ No newline at end of file


Mime
View raw message