-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Josh Bassett
committed
Mar 10, 2017
1 parent
be1054c
commit 93c8ef6
Showing
8 changed files
with
138 additions
and
36 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.gem | ||
.bundle | ||
.yardoc | ||
Gemfile.lock |
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 @@ | ||
--markup markdown |
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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
require "mache/node" | ||
|
||
module Mache | ||
# The Component class wraps a fragment of HTML and can be used in any number | ||
# of {Page} classes using the `component` macro. A component can contain | ||
# elements and other components. | ||
# | ||
# @example | ||
# | ||
# class NavItem < Mache::Component | ||
# def selected? | ||
# node[:class].include?("selected") | ||
# end | ||
# end | ||
# | ||
# class Nav < Mache::Component | ||
# components :items, NavItem, "a" | ||
# end | ||
# | ||
class Component < Node | ||
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
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 |
---|---|---|
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec| | |
spec.version = Mache::VERSION | ||
spec.authors = ["Joshua Bassett"] | ||
spec.email = ["[email protected]"] | ||
spec.summary = "A page object library for writing cleaner acceptance tests with Capybara." | ||
spec.description = "Mache provides a DSL for writing page object clases to use in your acceptance tests." | ||
spec.summary = "A library for writing cleaner and more expressive acceptance tests using page objects." | ||
spec.description = "Mâché provides helps you to write cleaner and more expressive acceptance tests for your web applications using page objects." | ||
spec.homepage = "https://github.com/nullobject/mache" | ||
spec.license = "MIT" | ||
spec.files = `git ls-files -z`.split("\x0").reject do |f| | ||
|