Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

before upgrading rpsec

  • Loading branch information...
commit 40418334d474da774d36a5c2fee37e022026c578 1 parent e2d191d
@haf haf authored
View
3  .bundle/config
@@ -1,2 +1 @@
----
-BUNDLE_DISABLE_SHARED_GEMS: "1"
+--- {}
View
2  Gemfile
@@ -6,7 +6,7 @@ group :development do
gem 'nokogiri', '~>1.4'
gem 'version_bumper', '~>0.3'
gem 'jeweler', '~>1.6'
- gem 'rspec', '~>1.2'
+ gem 'rspec', '~>2.6'
gem 'jekyll', '~>0.8'
gem 'watchr', '~>0.7'
end
View
26 lib/albacore/assemblyinfolanguages/fsharpengine.rb
@@ -0,0 +1,26 @@
+class FSharpEngine
+ def build_attribute_re(attr_name)
+ /^\[assembly: #{attr_name}(.+)/
+ end
+
+ def before
+ "module AssemblyInfo" # this could be anything
+ end
+
+ def build_attribute(attr_name, attr_data)
+ attribute = "[<assembly: #{attr_name}("
+ attribute << "#{attr_data.inspect}" if attr_data != nil
+ attribute << ")>]"
+
+ attribute
+ end
+
+ def build_using_statement(namespace)
+ "open #{namespace}"
+ end
+
+ def after
+ "()" # need to yield unit
+ end
+
+end
View
19 spec/assemblyinfo_spec.rb
@@ -1,5 +1,5 @@
require 'spec_helper'
-require 'assemblyinfotester'
+require 'support/assemblyinfotester'
require 'albacore/assemblyinfo'
describe AssemblyInfo, "when generating an assembly info file" do
@@ -74,10 +74,17 @@
end
end
-describe AssemblyInfo, "when providing custom namespaces and specifying C#" do
+shared_context "language engines", :subject => :subject do
+ before do
+ end
+end
+
+describe CSharpEngine, "when providing custom namespaces and specifying C#" do
+ include_context "language engines"
+
before :all do
@tester = AssemblyInfoTester.new
- @tester.lang_engine = CSharpEngine.new
+ @tester.lang_engine = c.new
asm = AssemblyInfo.new
asm.lang_engine = CSharpEngine.new
@@ -114,6 +121,12 @@
end
end
+describe AssemblyInfo, "when providing custom namespaces and specifying F#" do
+ before :all do
+
+ end
+end
+
describe AssemblyInfo, "when providing custom attributes without specifying a language" do
before :all do
@tester = AssemblyInfoTester.new
Please sign in to comment.
Something went wrong with that request. Please try again.