Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed a bug where if you had a WCF service with lowercase entities …
…(reported by Klaus Rohe) - Added a rake task for running RSpec and Cucumber tests.
- Loading branch information
Showing
7 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
require 'rake/rdoctask' | ||
require 'bundler' | ||
require 'rspec/core/rake_task' | ||
require 'cucumber/rake/task' | ||
|
||
Rake::RDocTask.new do |rd| | ||
rd.main = "README.rdoc" | ||
rd.rdoc_files.include("README.rdoc", "CHANGELOG.rdoc", "lib/**/*.rb") | ||
rd.rdoc_dir = 'doc' | ||
end | ||
|
||
desc "Run specs" | ||
RSpec::Core::RakeTask.new do |t| | ||
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. | ||
# Put spec opts in a file named .rspec in root | ||
end | ||
|
||
desc "Run features" | ||
Cucumber::Rake::Task.new(:features) do |t| | ||
t.cucumber_opts = "features --format progress" | ||
end | ||
|
||
|
||
Bundler::GemHelper.install_tasks | ||
task :default => [:spec, :features] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'spec_helper' | ||
|
||
module OData | ||
describe ClassBuilder do | ||
describe "#initialize" do | ||
it "handles lowercase entities" do | ||
klass = ClassBuilder.new 'product', [], [] | ||
result = klass.build | ||
result.should == Product | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> | ||
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"> | ||
<edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0"> | ||
<Schema Namespace="acronymdbModel" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> | ||
<EntityType Name="acronym"> | ||
<Key> | ||
<PropertyRef Name="aid" /> | ||
</Key> | ||
<Property Name="aid" Type="Edm.Int32" Nullable="false" /> | ||
<Property Name="acrn" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="true" FixedLength="true" /> | ||
<Property Name="meaning" Type="Edm.String" Nullable="false" MaxLength="500" Unicode="true" FixedLength="false" /> | ||
</EntityType> | ||
</Schema> | ||
<Schema Namespace="AcrnOData" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> | ||
<EntityContainer Name="acronymdbEntities" p7:LazyLoadingEnabled="true" m:IsDefaultEntityContainer="true" xmlns:p7="http://schemas.microsoft.com/ado/2009/02/edm/annotation"> | ||
<EntitySet Name="acronyms" EntityType="acronymdbModel.acronym" /> | ||
</EntityContainer> | ||
</Schema> | ||
</edmx:DataServices> | ||
</edmx:Edmx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters